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 / d7 / MigrateUpgrade7ReviewPageTest.php
1 <?php
2
3 namespace Drupal\Tests\migrate_drupal_ui\Functional\d7;
4
5 use Drupal\Tests\migrate_drupal_ui\Functional\MigrateUpgradeReviewPageTestBase;
6
7 /**
8  * Tests migrate upgrade review page for Drupal 7.
9  *
10  * @group migrate_drupal_7
11  * @group migrate_drupal_ui
12  */
13 class MigrateUpgrade7ReviewPageTest extends MigrateUpgradeReviewPageTestBase {
14
15   /**
16    * {@inheritdoc}
17    */
18   public static $modules = [
19     'language',
20     'content_translation',
21     'telephone',
22     'aggregator',
23     'book',
24     'forum',
25     'statistics',
26     'syslog',
27     'tracker',
28     'update',
29     // Required for translation migrations.
30     'migrate_drupal_multilingual',
31   ];
32
33   /**
34    * {@inheritdoc}
35    */
36   protected function setUp() {
37     parent::setUp();
38     $this->loadFixture(drupal_get_path('module', 'migrate_drupal') . '/tests/fixtures/drupal7.php');
39   }
40
41   /**
42    * {@inheritdoc}
43    */
44   protected function getSourceBasePath() {
45     return __DIR__ . '/files';
46   }
47
48   /**
49    * {@inheritdoc}
50    */
51   protected function getAvailablePaths() {
52     return [
53       'aggregator',
54       'block',
55       'book',
56       'color',
57       'comment',
58       'contact',
59       'date',
60       'dblog',
61       'email',
62       'field',
63       'field_sql_storage',
64       'file',
65       'filter',
66       'forum',
67       'image',
68       'language',
69       'link',
70       'list',
71       'locale',
72       'menu',
73       'node',
74       'number',
75       'options',
76       'path',
77       'phone',
78       'profile',
79       'rdf',
80       'search',
81       'shortcut',
82       'statistics',
83       'syslog',
84       'system',
85       'taxonomy',
86       'text',
87       'tracker',
88       'update',
89       'user',
90       // Include modules that do not have an upgrade path, defined in the
91       // $noUpgradePath property in MigrateUpgradeForm.
92       'blog',
93       'bulk_export',
94       'contextual',
95       'ctools',
96       'ctools_access_ruleset',
97       'ctools_ajax_sample',
98       'ctools_custom_content',
99       'dashboard',
100       'date_all_day',
101       'date_api',
102       'date_context',
103       'date_migrate',
104       'date_popup',
105       'date_repeat',
106       'date_repeat_field',
107       'date_tools',
108       'date_views',
109       'entity',
110       'entity_feature',
111       'entity_token',
112       'entityreference',
113       'entity_translation',
114       'field_ui',
115       'help',
116       'openid',
117       'overlay',
118       'page_manager',
119       'php',
120       'poll',
121       'search_embedded_form',
122       'search_extra_type',
123       'search_node_tags',
124       'simpletest',
125       'stylizer',
126       'term_depth',
127       'title',
128       'toolbar',
129       'translation',
130       'trigger',
131       'views_content',
132       'views_ui',
133     ];
134   }
135
136   /**
137    * {@inheritdoc}
138    */
139   protected function getMissingPaths() {
140     return [
141       'entity_translation_i18n_menu',
142       'entity_translation_upgrade',
143       'i18n',
144       'i18n_block',
145       'i18n_contact',
146       'i18n_field',
147       'i18n_forum',
148       'i18n_menu',
149       'i18n_node',
150       'i18n_path',
151       'i18n_redirect',
152       'i18n_select',
153       'i18n_string',
154       'i18n_sync',
155       'i18n_taxonomy',
156       'i18n_translation',
157       'i18n_user',
158       'i18n_variable',
159       'variable',
160       'variable_admin',
161       'variable_realm',
162       'variable_store',
163       'variable_views',
164       'views',
165     ];
166   }
167
168 }