File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
dev/tests/integration/testsuite/Magento/Cms/Model/ResourceModel Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ public function testAddFieldToFilter($field): void
51
51
52
52
$ collection = $ gridCollection ->addFieldToFilter ($ field , ['qteq ' => $ filterDate ]);
53
53
$ expectedSelect = "SELECT `main_table`.* FROM `cms_block` AS `main_table` " .
54
- "WHERE (((` {$ field }` = ' {$ convertedDate }'))) " ;
54
+ "WHERE ((((` {$ field }` = ' {$ convertedDate }')))) " .
55
+ "AND (main_table.created_in <= 1) AND (main_table.updated_in > 1) " ;
55
56
56
57
$ this ->assertEquals ($ expectedSelect , $ collection ->getSelectSql (true ));
57
58
}
Original file line number Diff line number Diff line change @@ -51,7 +51,8 @@ public function testAddFieldToFilter($field): void
51
51
52
52
$ collection = $ gridCollection ->addFieldToFilter ($ field , ['qteq ' => $ filterDate ]);
53
53
$ expectedSelect = "SELECT `main_table`.* FROM `cms_page` AS `main_table` " .
54
- "WHERE (((` {$ field }` = ' {$ convertedDate }'))) " ;
54
+ "WHERE ((((` {$ field }` = ' {$ convertedDate }')))) " .
55
+ "AND (main_table.created_in <= 1) AND (main_table.updated_in > 1) " ;
55
56
56
57
$ this ->assertEquals ($ expectedSelect , $ collection ->getSelectSql (true ));
57
58
}
You can’t perform that action at this time.
0 commit comments