function MigrateMessageControllerTest::testOverview
Same name in this branch
- 10 core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateMessageControllerTest::testOverview()
Same name in other branches
- 11.x core/modules/migrate/tests/src/Functional/MigrateMessageControllerTest.php \Drupal\Tests\migrate\Functional\MigrateMessageControllerTest::testOverview()
- 11.x core/modules/migrate_drupal_ui/tests/src/Functional/MigrateMessageControllerTest.php \Drupal\Tests\migrate_drupal_ui\Functional\MigrateMessageControllerTest::testOverview()
Tests the overview page for migrate messages.
Tests the overview page with the following scenarios;
- No message tables.
- With message tables.
File
-
core/
modules/ migrate/ tests/ src/ Functional/ MigrateMessageControllerTest.php, line 21
Class
- MigrateMessageControllerTest
- Tests for the MigrateController class.
Namespace
Drupal\Tests\migrate\FunctionalCode
public function testOverview() : void {
$session = $this->assertSession();
// First, test with no source database or message tables.
$this->drupalGet('/admin/reports/migration-messages');
$session->titleEquals('Migration messages | Drupal');
$session->pageTextContainsOnce('There are no migration message tables.');
// Create map and message tables.
$this->createTables($this->migrationIds);
// Now, test with message tables.
$this->drupalGet('/admin/reports/migration-messages');
foreach ($this->migrationIds as $migration_id) {
$session->pageTextContains($migration_id);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.