function NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage

Same name in this branch
  1. 9 core/modules/rdf/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php \Drupal\Tests\rdf\Functional\Migrate\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
Same name in other branches
  1. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php \Drupal\Tests\forum\Functional\migrate_drupal\d6\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  2. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php \Drupal\Tests\forum\Functional\migrate_drupal\d7\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  3. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d6\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  4. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d7\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  5. 11.x core/modules/forum/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php \Drupal\Tests\forum\Functional\migrate_drupal\d6\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  6. 11.x core/modules/forum/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php \Drupal\Tests\forum\Functional\migrate_drupal\d7\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  7. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d6/NoMultilingualReviewPageTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d6\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()
  8. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d7\NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage()

Tests that Color is displayed in the will be upgraded list.

Overrides NoMultilingualReviewPageTestBase::testMigrateUpgradeReviewPage

File

core/modules/color/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php, line 33

Class

NoMultilingualReviewPageTest
Tests review page.

Namespace

Drupal\Tests\color\Functional\Migrate

Code

public function testMigrateUpgradeReviewPage() {
    $this->prepare();
    // Start the upgrade process.
    $this->submitCredentialForm();
    $session = $this->assertSession();
    $this->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
    $session->statusCodeEquals(200);
    // Confirm that Color will be upgraded.
    $session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Color']");
    $session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Color']");
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.