@@ -65,9 +65,9 @@ public function changesDataProvider()
65
65
$ pathToFixtures . '/drop-foreign-key/source-code-after ' ,
66
66
[
67
67
'#Database \(MAJOR\)# ' ,
68
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /drop-foreign-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
68
+ '#[\w/]+ ' . ' /drop-foreign-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
69
69
'#unit_test_table/FL_ALLOWED_SEVERITIES\s*\|\s*Foreign key was removed\s*\|\s*M108# ' ,
70
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /drop-foreign-key/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0 \| unit_test_table/constraint# ' ,
70
+ '#[\w/]+ ' . ' /drop-foreign-key/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0 \| unit_test_table/constraint# ' ,
71
71
'#unit_test_table/constraint\s*\|\s*Module db schema whitelist reduced \(unit_test_table/constraint\)# '
72
72
],
73
73
'Major change is detected. '
@@ -77,7 +77,7 @@ public function changesDataProvider()
77
77
$ pathToFixtures . '/change-foreign-key/source-code-after ' ,
78
78
[
79
79
'#Database \(MAJOR\)# ' ,
80
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ change-foreign-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
80
+ '#[\w/]+ ' . ' change-foreign-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
81
81
'#unit_test_table/FL_ALLOWED_SEVERITIES/referenceTable\s*\|\s*Foreign key was changed\s*\|\s*M205# '
82
82
],
83
83
'Major change is detected. '
@@ -87,7 +87,7 @@ public function changesDataProvider()
87
87
$ pathToFixtures . '/add-foreign-key/source-code-after ' ,
88
88
[
89
89
'#Database \(MAJOR\)# ' ,
90
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ add-foreign-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
90
+ '#[\w/]+ ' . ' add-foreign-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
91
91
'#unit_test_table/FL_ALLOWED_SEVERITIES\s*\|\s*Foreign key was added\s*\|\s*M204# '
92
92
],
93
93
'Major change is detected. '
@@ -97,8 +97,8 @@ public function changesDataProvider()
97
97
$ pathToFixtures . '/drop-primary-key/source-code-after ' ,
98
98
[
99
99
'#Database \(MAJOR\)# ' ,
100
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ drop-primary-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
101
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ drop-primary-key/source-code-before/Magento/DbSchema/etc/db_schema_whitelist.json:0# ' ,
100
+ '#[\w/]+ ' . ' drop-primary-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
101
+ '#[\w/]+ ' . ' drop-primary-key/source-code-before/Magento/DbSchema/etc/db_schema_whitelist.json:0# ' ,
102
102
'#unit_test_table\s*\|\s*Module db schema whitelist reduced \(unit_test_table\)\.\s*\|\s*M110# ' ,
103
103
'#unit_test_table/PRIMARY\s*\|\s*Primary key was removed\s*\|\s*M207# '
104
104
],
@@ -109,8 +109,8 @@ public function changesDataProvider()
109
109
$ pathToFixtures . '/change-primary-key/source-code-after ' ,
110
110
[
111
111
'/Database \(MAJOR\)/ ' ,
112
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ change-primary-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
113
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ change-primary-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
112
+ '#[\w/]+ ' . ' change-primary-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
113
+ '#[\w/]+ ' . ' change-primary-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
114
114
'/unit_test_table\/PRIMARY\s*\|\s*Primary key was changed\s*\|\s*M206/ '
115
115
],
116
116
'Major change is detected. '
@@ -120,7 +120,7 @@ public function changesDataProvider()
120
120
$ pathToFixtures . '/add-primary-key/source-code-after ' ,
121
121
[
122
122
'/Database \(MAJOR\)/ ' ,
123
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ add-primary-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
123
+ '#[\w/]+ ' . ' add-primary-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
124
124
'/unit_test_table\/PRIMARY\s*\|\s*Primary key was added\s*\|\s*M205/ '
125
125
],
126
126
'Major change is detected. '
@@ -132,8 +132,8 @@ public function changesDataProvider()
132
132
'/Database \(MAJOR\)/ ' ,
133
133
'/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was removed\s*\|\s*M209/ ' ,
134
134
'#unit_test_table/constraint\s*\|\s*Module db schema whitelist reduced \(unit_test_table/constraint\)\.\s*\|\s*M110# ' ,
135
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ drop-unique-key/source-code-before/Magento/DbSchema/etc/db_schema.xml:0# ' ,
136
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ drop-unique-key/source-code-before/Magento/DbSchema/etc/db_schema_whitelist.json:0# '
135
+ '#[\w/]+ ' . ' drop-unique-key/source-code-before/Magento/DbSchema/etc/db_schema.xml:0# ' ,
136
+ '#[\w/]+ ' . ' drop-unique-key/source-code-before/Magento/DbSchema/etc/db_schema_whitelist.json:0# '
137
137
],
138
138
'Major change is detected. '
139
139
],
@@ -143,8 +143,8 @@ public function changesDataProvider()
143
143
[
144
144
'/Database \(MAJOR\)/ ' ,
145
145
'/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was changed\s*\|\s*M210/ ' ,
146
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ change-unique-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
147
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ change-unique-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# '
146
+ '#[\w/]+ ' . ' change-unique-key/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
147
+ '#[\w/]+ ' . ' change-unique-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# '
148
148
],
149
149
'Major change is detected. '
150
150
],
@@ -154,7 +154,7 @@ public function changesDataProvider()
154
154
[
155
155
'/Database \(MAJOR\)/ ' ,
156
156
'/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was added\s*\|\s*M208/ ' ,
157
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ add-unique-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# '
157
+ '#[\w/]+ ' . ' add-unique-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# '
158
158
],
159
159
'Major change is detected. '
160
160
],
@@ -165,8 +165,8 @@ public function changesDataProvider()
165
165
'/Database \(MAJOR\)/ ' ,
166
166
'/unit_test_table\/time_occurred\s*\|\s*Column was removed\s*\|\s*M107/ ' ,
167
167
'/Module db schema whitelist reduced \(unit\_test\_table\/column\).\s*\|\s*M110/ ' ,
168
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ column-removed/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0# ' ,
169
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ column-removed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# '
168
+ '#[\w/]+ ' . ' column-removed/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0# ' ,
169
+ '#[\w/]+ ' . ' column-removed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# '
170
170
],
171
171
'Major change is detected. '
172
172
],
@@ -175,7 +175,7 @@ public function changesDataProvider()
175
175
$ pathToFixtures . '/column-added/source-code-after ' ,
176
176
[
177
177
'/Database \(MINOR\)/ ' ,
178
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ column-added/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
178
+ '#[\w/]+ ' . ' column-added/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
179
179
'/unit_test_table\/time_occurred\s*\|\s*Column was added\s*\|\s*M203/ '
180
180
],
181
181
'Minor change is detected. '
@@ -187,8 +187,8 @@ public function changesDataProvider()
187
187
'/Database \(MAJOR\)/ ' ,
188
188
'/other_unit_test_table\s*\|\s*Table was dropped\s*\|\s*M104/ ' ,
189
189
'/Module db schema whitelist reduced \(other\_unit\_test\_table\).\s*\|\s*M110/ ' ,
190
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /table-dropped/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
191
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /table-dropped/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0# '
190
+ '#[\w/]+ ' . ' /table-dropped/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
191
+ '#[\w/]+ ' . ' /table-dropped/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0# '
192
192
],
193
193
'Major change is detected. '
194
194
],
@@ -200,8 +200,8 @@ public function changesDataProvider()
200
200
'/other_unit_test_table\s*\|\s*Table was added\s*\|\s*M202/ ' ,
201
201
'#other_table\s*\|\s*Table was added\s*\|\s*M202# ' ,
202
202
'#other_table\s*\|\s*Whitelist do not have table other_table declared in db_schema\.xml\s*\|\s*M109# ' ,
203
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /table-added/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
204
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /table-added/source-code-after/Magento/DbSchema/etc/db_schema_whitelist\.json:0# ' ,
203
+ '#[\w/]+ ' . ' /table-added/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
204
+ '#[\w/]+ ' . ' /table-added/source-code-after/Magento/DbSchema/etc/db_schema_whitelist\.json:0# ' ,
205
205
206
206
],
207
207
'Minor change is detected. '
@@ -212,9 +212,9 @@ public function changesDataProvider()
212
212
[
213
213
'/Database \(MAJOR\)/ ' ,
214
214
'/unit_test_table\s*\|\s*Table was dropped\s*\|\s*M104/ ' ,
215
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ table-changed/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
216
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ table-changed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
217
- '#Console/Command/CompareSourceCommandTest/_files/db_schema/ table-changed/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0# ' ,
215
+ '#[\w/]+ ' . ' table-changed/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
216
+ '#[\w/]+ ' . ' table-changed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
217
+ '#[\w/]+ ' . ' table-changed/source-code-before/Magento/DbSchema/etc/db_schema_whitelist\.json:0# ' ,
218
218
'/unit_test_table\s*\|\s*Module db schema whitelist reduced \(unit\_test\_table\).\s*\|\s*M110/ ' ,
219
219
'/new_unit_test_table\s*\|\s*Table was added\s*\|\s*M202/ '
220
220
],
@@ -225,7 +225,7 @@ public function changesDataProvider()
225
225
$ pathToFixtures . '/table-resource-changed/source-code-after ' ,
226
226
[
227
227
'/Database \(MAJOR\)/ ' ,
228
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /table-resource-changed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
228
+ '#[\w/]+ ' . ' /table-resource-changed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
229
229
'/unit_test_table\s*\|\s*Table chard was changed from default to sales\s*\|\s*M105/ '
230
230
],
231
231
'Major change is detected. '
@@ -239,8 +239,8 @@ public function changesDataProvider()
239
239
'/Magento\/DbSchemaSecond\/etc\/db_schema_whitelist\.json:0\s*\|\s*unit_test_table3\s*\|\s*Module db schema whitelist reduced \(unit\_test\_table3\).\s*\|\s*M110/ ' ,
240
240
'/Magento\/DbSchemaSecond\/etc\/db_schema_whitelist\.json:0\s*\|\s*unit_test_table2\s*\|\s*Module db schema whitelist reduced \(unit\_test\_table2\).\s*\|\s*M110/ ' ,
241
241
'/Magento\/DbSchema\/etc\/db_schema_whitelist.json:0\s*\|\s*unit_test_table3\s*\|\s*Module db schema whitelist reduced \(unit\_test\_table3\).\s*\|\s*M110/ ' ,
242
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /whitelist-was-reduced/source-code-before/Magento/DbSchemaSecond/etc/db_schema\.xml:0# ' ,
243
- '#Console/Command/CompareSourceCommandTest/_files/db_schema /whitelist-was-reduced/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# '
242
+ '#[\w/]+ ' . ' /whitelist-was-reduced/source-code-before/Magento/DbSchemaSecond/etc/db_schema\.xml:0# ' ,
243
+ '#[\w/]+ ' . ' /whitelist-was-reduced/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# '
244
244
],
245
245
'Major change is detected. '
246
246
],
0 commit comments