function ReviewPageTest::testMigrateUpgradeReviewPage

Same name in other branches
  1. 10 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php \Drupal\Tests\tracker\Functional\Migrate\ReviewPageTest::testMigrateUpgradeReviewPage()
  2. 10 core/modules/book/tests/src/Functional/Migrate/d6/ReviewPageTest.php \Drupal\Tests\book\Functional\Migrate\d6\ReviewPageTest::testMigrateUpgradeReviewPage()
  3. 10 core/modules/book/tests/src/Functional/Migrate/d7/ReviewPageTest.php \Drupal\Tests\book\Functional\Migrate\d7\ReviewPageTest::testMigrateUpgradeReviewPage()
  4. 11.x core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php \Drupal\Tests\tracker\Functional\Migrate\ReviewPageTest::testMigrateUpgradeReviewPage()
  5. 11.x core/modules/book/tests/src/Functional/Migrate/d6/ReviewPageTest.php \Drupal\Tests\book\Functional\Migrate\d6\ReviewPageTest::testMigrateUpgradeReviewPage()
  6. 11.x core/modules/book/tests/src/Functional/Migrate/d7/ReviewPageTest.php \Drupal\Tests\book\Functional\Migrate\d7\ReviewPageTest::testMigrateUpgradeReviewPage()

Tests the review page.

Overrides NoMultilingualReviewPageTestBase::testMigrateUpgradeReviewPage

File

core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php, line 30

Class

ReviewPageTest
Tests Review page.

Namespace

Drupal\Tests\tracker\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 Tracker will be upgraded.
    $session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Tracker']");
    $session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Tracker']");
}

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