diff options
Diffstat (limited to 'tests/unit/db/ItemMapperTest.php')
-rw-r--r-- | tests/unit/db/ItemMapperTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php index 01bc84664..8619731c0 100644 --- a/tests/unit/db/ItemMapperTest.php +++ b/tests/unit/db/ItemMapperTest.php @@ -284,7 +284,7 @@ class ItemMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility { $status = StatusFlag::STARRED | StatusFlag::UNREAD; $sql = 'SELECT COUNT(*) `size`, `feed_id` ' . 'FROM `*PREFIX*news_items` ' . - 'AND NOT ((`status` & ?) > 0) ' . + 'WHERE NOT ((`status` & ?) > 0) ' . 'GROUP BY `feed_id` ' . 'HAVING COUNT(*) > ?'; @@ -303,7 +303,7 @@ class ItemMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility { $sql1 = 'SELECT COUNT(*) `size`, `feed_id` ' . 'FROM `*PREFIX*news_items` ' . - 'AND NOT ((`status` & ?) > 0) ' . + 'WHERE NOT ((`status` & ?) > 0) ' . 'GROUP BY `feed_id` ' . 'HAVING COUNT(*) > ?'; $params1 = array($status, $threshold); |