function ReviewPageTest::testMigrateUpgradeReviewPage
Same name in this branch
- 11.x core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php \Drupal\Tests\tracker\Functional\Migrate\ReviewPageTest::testMigrateUpgradeReviewPage()
- 11.x core/modules/book/tests/src/Functional/Migrate/d7/ReviewPageTest.php \Drupal\Tests\book\Functional\Migrate\d7\ReviewPageTest::testMigrateUpgradeReviewPage()
Same name in other branches
- 9 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php \Drupal\Tests\tracker\Functional\Migrate\ReviewPageTest::testMigrateUpgradeReviewPage()
- 10 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php \Drupal\Tests\tracker\Functional\Migrate\ReviewPageTest::testMigrateUpgradeReviewPage()
- 10 core/modules/book/tests/src/Functional/Migrate/d6/ReviewPageTest.php \Drupal\Tests\book\Functional\Migrate\d6\ReviewPageTest::testMigrateUpgradeReviewPage()
- 10 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/ book/ tests/ src/ Functional/ Migrate/ d6/ ReviewPageTest.php, line 32
Class
- ReviewPageTest
- Tests Review page.
Namespace
Drupal\Tests\book\Functional\Migrate\d6Code
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 Book will be upgraded.
$session->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Book']");
$session->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Book']");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.