Pull merge.
[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       'i18n_block',
69       'language',
70       'link',
71       'list',
72       'locale',
73       'menu',
74       'node',
75       'number',
76       'options',
77       'path',
78       'phone',
79       'profile',
80       'rdf',
81       'search',
82       'shortcut',
83       'statistics',
84       'syslog',
85       'system',
86       'taxonomy',
87       'text',
88       'tracker',
89       'update',
90       'user',
91       // Include modules that do not have an upgrade path, defined in the
92       // $noUpgradePath property in MigrateUpgradeForm.
93       'blog',
94       'bulk_export',
95       'contextual',
96       'ctools',
97       'ctools_access_ruleset',
98       'ctools_ajax_sample',
99       'ctools_custom_content',
100       'dashboard',
101       'date_all_day',
102       'date_api',
103       'date_context',
104       'date_migrate',
105       'date_popup',
106       'date_repeat',
107       'date_repeat_field',
108       'date_tools',
109       'date_views',
110       'entity',
111       'entity_feature',
112       'entity_token',
113       'entityreference',
114       'entity_translation',
115       'field_ui',
116       'help',
117       'openid',
118       'overlay',
119       'page_manager',
120       'php',
121       'poll',
122       'search_embedded_form',
123       'search_extra_type',
124       'search_node_tags',
125       'simpletest',
126       'stylizer',
127       'term_depth',
128       'title',
129       'toolbar',
130       'translation',
131       'trigger',
132       'views_content',
133       'views_ui',
134     ];
135   }
136
137   /**
138    * {@inheritdoc}
139    */
140   protected function getMissingPaths() {
141     return [
142       'entity_translation_i18n_menu',
143       'entity_translation_upgrade',
144       'i18n',
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 }