@@ -333,9 +333,15 @@ public function testBuildStatementIgnoredColumnSubscriptionLevel(): void
333
333
{
334
334
$ tableName = 'cataloginventory_stock_item ' ;
335
335
$ ignoredColumnName = 'low_stock_date ' ;
336
+ $ notIgnoredColumnName = 'backorders ' ;
336
337
$ viewId = 'cataloginventory_stock ' ;
337
338
$ ignoredData = [
338
- $ viewId => [$ tableName => [$ ignoredColumnName ]]
339
+ $ viewId => [
340
+ $ tableName => [
341
+ $ ignoredColumnName => true ,
342
+ $ notIgnoredColumnName => false
343
+ ]
344
+ ]
339
345
];
340
346
341
347
$ this ->connectionMock ->expects ($ this ->once ())
@@ -349,6 +355,7 @@ public function testBuildStatementIgnoredColumnSubscriptionLevel(): void
349
355
'stock_id ' => ['COLUMN_NAME ' => 'stock_id ' ],
350
356
'qty ' => ['COLUMN_NAME ' => 'qty ' ],
351
357
$ ignoredColumnName => ['COLUMN_NAME ' => $ ignoredColumnName ],
358
+ $ notIgnoredColumnName => ['COLUMN_NAME ' => $ notIgnoredColumnName ]
352
359
]);
353
360
354
361
$ otherChangelogMock = $ this ->getMockForAbstractClass (ChangelogInterface::class);
@@ -372,5 +379,6 @@ public function testBuildStatementIgnoredColumnSubscriptionLevel(): void
372
379
$ statement = $ method ->invoke ($ model , Trigger::EVENT_UPDATE , $ otherChangelogMock );
373
380
374
381
$ this ->assertStringNotContainsString ($ ignoredColumnName , $ statement );
382
+ $ this ->assertStringContainsString ($ notIgnoredColumnName , $ statement );
375
383
}
376
384
}
0 commit comments