Same filename in this branch
- 10 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php
- 10 core/modules/book/tests/src/Functional/Migrate/d6/ReviewPageTest.php
- 10 core/modules/book/tests/src/Functional/Migrate/d7/ReviewPageTest.php
Same filename and directory in other branches
- 9 core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php
Namespace
Drupal\Tests\tracker\Functional\Migrate
File
core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\tracker\Functional\Migrate;
use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;
class ReviewPageTest extends NoMultilingualReviewPageTestBase {
protected static $modules = [
'tracker',
];
protected function setUp() : void {
parent::setUp();
$this
->loadFixture($this
->getModulePath('tracker') . '/tests/fixtures/drupal7.php');
}
public function testMigrateUpgradeReviewPage() {
$this
->prepare();
$this
->submitCredentialForm();
$session = $this
->assertSession();
$this
->submitForm([], 'I acknowledge I may lose data. Continue anyway.');
$session
->statusCodeEquals(200);
$session
->elementExists('xpath', "//td[contains(@class, 'checked') and text() = 'Tracker']");
$session
->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'Tracker']");
}
protected function getSourceBasePath() {
return __DIR__;
}
protected function getAvailablePaths() {
return [];
}
protected function getIncompletePaths() {
return [];
}
protected function getMissingPaths() {
return [];
}
}
Classes