function 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.