From 5a0e774ad88bb1b22bf62ddc15538151df76b948 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Thu, 25 Apr 2013 10:44:25 +0200 Subject: fix unittests --- tests/unit/db/ItemMapperTest.php | 4 ++-- 1 file 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); -- cgit v1.2.3