3 namespace Drupal\Tests\migrate_drupal_ui\Functional;
6 * Tests the upgrade review form without translations.
8 * When using this test class do not enable content_translation.
10 abstract class MigrateUpgradeI18nReviewPageTestBase extends MigrateUpgradeReviewPageTestBase {
13 * Tests the review page when content_translation is enabled.
15 public function testMigrateUpgradeReviewPage() {
17 // Start the upgrade process.
18 $this->drupalGet('/upgrade');
19 $this->drupalPostForm(NULL, [], t('Continue'));
20 $this->drupalPostForm(NULL, $this->edits, t('Review upgrade'));
22 $session = $this->assertSession();
23 $session->pageTextContains('WARNING: Content may be overwritten on your new site.');
24 $session->pageTextContains('There is conflicting content of these types:');
25 $session->pageTextContains('taxonomy terms');
26 $session->pageTextNotContains('There is translated content of these types:');
27 $session->pageTextNotContains('custom menu links');
29 $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
30 $session->statusCodeEquals(200);
32 // Ensure there are no errors about missing modules from the test module.
33 $session->pageTextNotContains(t('Source module not found for migration_provider_no_annotation.'));
34 $session->pageTextNotContains(t('Source module not found for migration_provider_test.'));
35 $session->pageTextNotContains(t('Destination module not found for migration_provider_test'));
36 // Ensure there are no errors about any other missing migration providers.
37 $session->pageTextNotContains(t('module not found'));
39 // Test the upgrade paths.
40 $available_paths = $this->getAvailablePaths();
41 $missing_paths = $this->getMissingPaths();
42 $this->assertUpgradePaths($session, $available_paths, $missing_paths);