diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:16:08 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-12 23:16:08 +0200 |
commit | 874c469e0241962e15927de5aba758a7206849ba (patch) | |
tree | 219febba5e72e13e2a4f789cf59fd057b7368c28 /tests/unit/db/FeedMapperTest.php | |
parent | 541318cb81710ef080b30cc790681ace773c11ac (diff) |
remove more dead code
Diffstat (limited to 'tests/unit/db/FeedMapperTest.php')
-rw-r--r-- | tests/unit/db/FeedMapperTest.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/unit/db/FeedMapperTest.php b/tests/unit/db/FeedMapperTest.php index 35433bf31..5c2921063 100644 --- a/tests/unit/db/FeedMapperTest.php +++ b/tests/unit/db/FeedMapperTest.php @@ -84,7 +84,7 @@ class FeedMapperTest extends \OCA\News\Utility\MapperTestUtility { $this->setMapperResult($sql, $params); $this->setExpectedException('\OCA\News\Db\DoesNotExistException'); - $result = $this->mapper->find($id, $userId); + $this->mapper->find($id, $userId); } @@ -111,12 +111,11 @@ class FeedMapperTest extends \OCA\News\Utility\MapperTestUtility { $this->setMapperResult($sql, $params, $rows); $this->setExpectedException('\OCA\News\Db\MultipleObjectsReturnedException'); - $result = $this->mapper->find($id, $userId); + $this->mapper->find($id, $userId); } public function testFindAll(){ - $userId = 'john'; $rows = array( array('id' => $this->feeds[0]->getId()), array('id' => $this->feeds[1]->getId()) @@ -227,7 +226,7 @@ class FeedMapperTest extends \OCA\News\Utility\MapperTestUtility { array($urlHash, $this->user)); $this->setExpectedException('\OCA\News\Db\DoesNotExistException'); - $result = $this->mapper->findByUrlHash($urlHash, $this->user); + $this->mapper->findByUrlHash($urlHash, $this->user); } @@ -253,7 +252,7 @@ class FeedMapperTest extends \OCA\News\Utility\MapperTestUtility { array($urlHash, $this->user), $rows); $this->setExpectedException('\OCA\News\Db\MultipleObjectsReturnedException'); - $result = $this->mapper->findByUrlHash($urlHash, $this->user); + $this->mapper->findByUrlHash($urlHash, $this->user); } @@ -318,7 +317,7 @@ class FeedMapperTest extends \OCA\News\Utility\MapperTestUtility { array('id' => $this->feeds[0]->getId()), array('id' => $this->feeds[1]->getId()) ); - $deleteOlderThan = 110; + $sql = 'SELECT * FROM `*PREFIX*news_feeds` ' . 'WHERE `deleted_at` > 0 ' . 'AND `user_id` = ?'; |