function NoMultilingualReviewPageTest::testMigrateUpgradeReviewPage

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

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

Overrides NoMultilingualReviewPageTestBase::testMigrateUpgradeReviewPage

File

core/modules/statistics/tests/src/Functional/migrate_drupal/d7/NoMultilingualReviewPageTest.php, line 37

Class

NoMultilingualReviewPageTest
Tests Drupal 7 upgrade without translations.

Namespace

Drupal\Tests\statistics\Functional\migrate_drupal\d7

Code

public function testMigrateUpgradeReviewPage() : void {
    $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 Statistics will be upgraded.
    $session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Statistics']");
    $session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Statistics']");
}

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