You are here

protected function MigrateUpgradeTestBase::assertReviewPage in Drupal 8

Helper method to assert the text on the 'Upgrade analysis report' page.

Parameters

\Drupal\Tests\WebAssert $session: The web-assert session.

array $available_paths: An array of modules that will be upgraded.

array $missing_paths: An array of modules that will not be upgraded.

1 call to MigrateUpgradeTestBase::assertReviewPage()
MigrateUpgradeExecuteTestBase::testMigrateUpgradeExecute in core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeExecuteTestBase.php
Executes all steps of migrations upgrade.

File

core/modules/migrate_drupal_ui/tests/src/Functional/MigrateUpgradeTestBase.php, line 178

Class

MigrateUpgradeTestBase
Provides a base class for testing migration upgrades in the UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional

Code

protected function assertReviewPage(WebAssert $session, array $available_paths, array $missing_paths) {
  $this
    ->assertText('What will be upgraded?');

  // Ensure there are no errors about the missing modules from the test module.
  $session
    ->pageTextNotContains(t('Source module not found for migration_provider_no_annotation.'));
  $session
    ->pageTextNotContains(t('Source module not found for migration_provider_test.'));
  $session
    ->pageTextNotContains(t('Destination module not found for migration_provider_test'));

  // Ensure there are no errors about any other missing migration providers.
  $session
    ->pageTextNotContains(t('module not found'));
  $this
    ->assertUpgradePaths($session, $available_paths, $missing_paths);
}