ReviewPageTest.php in Drupal 10
File
core/modules/tracker/tests/src/Functional/Migrate/ReviewPageTest.php
View source
<?php
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 [];
}
}