summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-23 16:43:50 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-23 16:43:50 +0100
commit842b39c380a1996205042a62d00f0a22db94364a (patch)
treeeb8c1ad5b2e12e6dfa3cf823e5325025ead8bc75 /tests
parent01355fa6274ee8bc053798aa0a78d28944a0f304 (diff)
various bugfixes
Diffstat (limited to 'tests')
-rw-r--r--tests/db/ItemMapperTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/db/ItemMapperTest.php b/tests/db/ItemMapperTest.php
index b792daac3..626ac2cd0 100644
--- a/tests/db/ItemMapperTest.php
+++ b/tests/db/ItemMapperTest.php
@@ -72,12 +72,13 @@ class ItemMapperTest extends \OCA\AppFramework\Utility\MapperTestUtility {
private function makeSelectQuery($prependTo){
- return 'SELECT `*PREFIX*news_items`.* FROM `*PREFIX*news_items` ' .
- 'JOIN `*PREFIX*news_feeds` ' .
+ return 'SELECT `*PREFIX*news_items`.* FROM `*PREFIX*news_items` `items` '.
+ 'JOIN `*PREFIX*news_feeds` `feeds` ' .
'ON `*PREFIX*news_feeds`.`id` = `*PREFIX*news_items`.`feed_id` '.
- 'AND `*PREFIX*news_feeds`.`user_id` = ? ' . $prependTo;
+ 'AND `*PREFIX*news_feeds`.`user_id` = ? ' . $prependTo;
}
+
private function makeSelectQueryStatus($prependTo) {
return $this->makeSelectQuery(
'AND ((`*PREFIX*news_items`.`status` & ?) > 0) ' .