@@ -109,6 +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
114
'/unit_test_table\/PRIMARY\s*\|\s*Primary key was changed\s*\|\s*M206/ '
113
115
],
114
116
'Major change is detected. '
@@ -118,6 +120,7 @@ public function changesDataProvider()
118
120
$ pathToFixtures . '/add-primary-key/source-code-after ' ,
119
121
[
120
122
'/Database \(MAJOR\)/ ' ,
123
+ '#Console/Command/CompareSourceCommandTest/_files/db_schema/add-primary-key/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
121
124
'/unit_test_table\/PRIMARY\s*\|\s*Primary key was added\s*\|\s*M205/ '
122
125
],
123
126
'Major change is detected. '
@@ -127,7 +130,10 @@ public function changesDataProvider()
127
130
$ pathToFixtures . '/drop-unique-key/source-code-after ' ,
128
131
[
129
132
'/Database \(MAJOR\)/ ' ,
130
- '/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was removed\s*\|\s*M209/ '
133
+ '/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was removed\s*\|\s*M209/ ' ,
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# '
131
137
],
132
138
'Major change is detected. '
133
139
],
@@ -136,7 +142,9 @@ public function changesDataProvider()
136
142
$ pathToFixtures . '/change-unique-key/source-code-after ' ,
137
143
[
138
144
'/Database \(MAJOR\)/ ' ,
139
- '/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was changed\s*\|\s*M210/ '
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# '
140
148
],
141
149
'Major change is detected. '
142
150
],
@@ -145,7 +153,8 @@ public function changesDataProvider()
145
153
$ pathToFixtures . '/add-unique-key/source-code-after ' ,
146
154
[
147
155
'/Database \(MAJOR\)/ ' ,
148
- '/unit_test_table\/UNIQUE_KEY\s*\|\s*Unique key was added\s*\|\s*M208/ '
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# '
149
158
],
150
159
'Major change is detected. '
151
160
],
@@ -155,7 +164,9 @@ public function changesDataProvider()
155
164
[
156
165
'/Database \(MAJOR\)/ ' ,
157
166
'/unit_test_table\/time_occurred\s*\|\s*Column was removed\s*\|\s*M107/ ' ,
158
- '/Module db schema whitelist reduced \(unit\_test\_table\/column\).\s*\|\s*M110/ '
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# '
159
170
],
160
171
'Major change is detected. '
161
172
],
@@ -164,6 +175,7 @@ public function changesDataProvider()
164
175
$ pathToFixtures . '/column-added/source-code-after ' ,
165
176
[
166
177
'/Database \(MINOR\)/ ' ,
178
+ '#Console/Command/CompareSourceCommandTest/_files/db_schema/column-added/source-code-after/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
167
179
'/unit_test_table\/time_occurred\s*\|\s*Column was added\s*\|\s*M203/ '
168
180
],
169
181
'Minor change is detected. '
@@ -174,7 +186,9 @@ public function changesDataProvider()
174
186
[
175
187
'/Database \(MAJOR\)/ ' ,
176
188
'/other_unit_test_table\s*\|\s*Table was dropped\s*\|\s*M104/ ' ,
177
- '/Module db schema whitelist reduced \(other\_unit\_test\_table\).\s*\|\s*M110/ '
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# '
178
192
],
179
193
'Major change is detected. '
180
194
],
@@ -183,7 +197,12 @@ public function changesDataProvider()
183
197
$ pathToFixtures . '/table-added/source-code-after ' ,
184
198
[
185
199
'/Database \(MINOR\)/ ' ,
186
- '/other_unit_test_table\s*\|\s*Table was added\s*\|\s*M202/ '
200
+ '/other_unit_test_table\s*\|\s*Table was added\s*\|\s*M202/ ' ,
201
+ '#other_table\s*\|\s*Table was added\s*\|\s*M202# ' ,
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# ' ,
205
+
187
206
],
188
207
'Minor change is detected. '
189
208
],
@@ -193,6 +212,9 @@ public function changesDataProvider()
193
212
[
194
213
'/Database \(MAJOR\)/ ' ,
195
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# ' ,
196
218
'/unit_test_table\s*\|\s*Module db schema whitelist reduced \(unit\_test\_table\).\s*\|\s*M110/ ' ,
197
219
'/new_unit_test_table\s*\|\s*Table was added\s*\|\s*M202/ '
198
220
],
@@ -203,6 +225,7 @@ public function changesDataProvider()
203
225
$ pathToFixtures . '/table-resource-changed/source-code-after ' ,
204
226
[
205
227
'/Database \(MAJOR\)/ ' ,
228
+ '#Console/Command/CompareSourceCommandTest/_files/db_schema/table-resource-changed/source-code-before/Magento/DbSchema/etc/db_schema\.xml:0# ' ,
206
229
'/unit_test_table\s*\|\s*Table chard was changed from default to sales\s*\|\s*M105/ '
207
230
],
208
231
'Major change is detected. '
@@ -215,7 +238,9 @@ public function changesDataProvider()
215
238
'/Magento\/DbSchema\/etc\/db_schema_whitelist.json:0\s*\|\s*unit_test_table\s*\|\s*Module db schema whitelist reduced \(unit\_test\_table\).\s*\|\s*M110/ ' ,
216
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/ ' ,
217
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/ ' ,
218
- '/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/ '
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# '
219
244
],
220
245
'Major change is detected. '
221
246
],
0 commit comments