NoMultilingualReviewPageTestBase.php in Drupal 8
File
core/modules/migrate_drupal_ui/tests/src/Functional/NoMultilingualReviewPageTestBase.php
View source
<?php
namespace Drupal\Tests\migrate_drupal_ui\Functional;
abstract class NoMultilingualReviewPageTestBase extends MultilingualReviewPageTestBase {
public function testMigrateUpgradeReviewPage() {
$this
->prepare();
$this
->drupalGet('/upgrade');
$this
->drupalPostForm(NULL, [], t('Continue'));
$this
->drupalPostForm(NULL, $this->edits, t('Review upgrade'));
$session = $this
->assertSession();
$session
->pageTextContains('WARNING: Content may be overwritten on your new site.');
$session
->pageTextContains('There is conflicting content of these types:');
$session
->pageTextContains('taxonomy terms');
$session
->pageTextContains('There is translated content of these types:');
$session
->pageTextContainsOnce('content items');
$this
->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
$session
->statusCodeEquals(200);
$session
->pageTextNotContains(t('Source module not found for migration_provider_no_annotation.'));
$session
->pageTextNotContains(t('Source module not found for migration_provider_test.'));
$session
->pageTextNotContains(t('Destination module not found for migration_provider_test'));
$session
->pageTextNotContains(t('module not found'));
$available_paths = $this
->getAvailablePaths();
$missing_paths = $this
->getMissingPaths();
$this
->assertUpgradePaths($session, $available_paths, $missing_paths);
}
}