NoMultilingualReviewPageTest.php in Drupal 10
File
core/modules/rdf/tests/src/Functional/Migrate/NoMultilingualReviewPageTest.php
View source
<?php
namespace Drupal\Tests\rdf\Functional\Migrate;
use Drupal\Tests\migrate_drupal_ui\Functional\NoMultilingualReviewPageTestBase;
class NoMultilingualReviewPageTest extends NoMultilingualReviewPageTestBase {
protected static $modules = [
'rdf',
];
protected function setUp() : void {
parent::setUp();
$this
->loadFixture($this
->getModulePath('rdf') . '/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() = 'RDF']");
$session
->elementNotExists('xpath', "//td[contains(@class, 'error') and text() = 'RDF']");
}
protected function getSourceBasePath() {
return __DIR__;
}
protected function getAvailablePaths() {
return [];
}
protected function getIncompletePaths() {
return [];
}
protected function getMissingPaths() {
return [];
}
}