Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / migrate_drupal_ui / tests / src / Functional / MigrateUpgradeI18nReviewPageTestBase.php
1 <?php
2
3 namespace Drupal\Tests\migrate_drupal_ui\Functional;
4
5 /**
6  * Tests the upgrade review form without translations.
7  *
8  * When using this test class do not enable content_translation.
9  */
10 abstract class MigrateUpgradeI18nReviewPageTestBase extends MigrateUpgradeReviewPageTestBase {
11
12   /**
13    * Tests the review page when content_translation is enabled.
14    */
15   public function testMigrateUpgradeReviewPage() {
16     $this->prepare();
17     // Start the upgrade process.
18     $this->drupalGet('/upgrade');
19     $this->drupalPostForm(NULL, [], t('Continue'));
20     $this->drupalPostForm(NULL, $this->edits, t('Review upgrade'));
21
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');
28
29     $this->drupalPostForm(NULL, [], t('I acknowledge I may lose data. Continue anyway.'));
30     $session->statusCodeEquals(200);
31
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'));
38
39     // Test the upgrade paths.
40     $available_paths = $this->getAvailablePaths();
41     $missing_paths = $this->getMissingPaths();
42     $this->assertUpgradePaths($session, $available_paths, $missing_paths);
43   }
44
45 }