summaryrefslogtreecommitdiffstats
path: root/tests/unit/db
diff options
context:
space:
mode:
authorBernhard Posselt <bernhard@posselt.at>2015-11-28 14:19:51 +0100
committerBernhard Posselt <bernhard@posselt.at>2015-11-28 14:19:51 +0100
commit30e66657b8709e95240da4f252a3fce6797acfda (patch)
tree5fad4b3ed44675e72d26be22d4b914bf99f961b2 /tests/unit/db
parent911af7d64402f86383b13eac832c8bd9a6a0556e (diff)
also read duplicate feed items read
Diffstat (limited to 'tests/unit/db')
-rw-r--r--tests/unit/db/ItemMapperTest.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/tests/unit/db/ItemMapperTest.php b/tests/unit/db/ItemMapperTest.php
index 8b42aebb8..12597fb46 100644
--- a/tests/unit/db/ItemMapperTest.php
+++ b/tests/unit/db/ItemMapperTest.php
@@ -166,24 +166,6 @@ class ItemMapperTest extends \OCA\News\Tests\Unit\Db\MapperTestUtility {
}
- public function testReadFeed(){
- $sql = 'UPDATE `*PREFIX*news_items` ' .
- 'SET `status` = `status` & ? ' .
- ', `last_modified` = ? ' .
- 'WHERE `feed_id` = ? ' .
- 'AND `id` <= ? ' .
- 'AND EXISTS (' .
- 'SELECT * FROM `*PREFIX*news_feeds` ' .
- 'WHERE `user_id` = ? ' .
- 'AND `id` = ? ) ';
- $params = [
- ~StatusFlag::UNREAD, $this->updatedSince, 3, 6, $this->user, 3
- ];
- $this->setMapperResult($sql, $params);
- $this->mapper->readFeed(3, 6, $this->updatedSince, $this->user);
- }
-
-
public function testFindAllNew(){
$sql = 'AND `items`.`last_modified` >= ? ';
$sql = $this->makeSelectQueryStatus($sql, $this->status);
@@ -545,4 +527,4 @@ class ItemMapperTest extends \OCA\News\Tests\Unit\Db\MapperTestUtility {
}
-} \ No newline at end of file
+}