diff options
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/db/postgres/ItemMapperTest.php | 15 | ||||
-rw-r--r-- | tests/unit/utility/FaviconFetcherTest.php | 3 |
2 files changed, 0 insertions, 18 deletions
diff --git a/tests/unit/db/postgres/ItemMapperTest.php b/tests/unit/db/postgres/ItemMapperTest.php index 719721fa4..1bc298566 100644 --- a/tests/unit/db/postgres/ItemMapperTest.php +++ b/tests/unit/db/postgres/ItemMapperTest.php @@ -71,21 +71,6 @@ class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility { } - private function makeSelectQuery($prependTo){ - return 'SELECT `items`.* FROM `*PREFIX*news_items` `items` '. - 'JOIN `*PREFIX*news_feeds` `feeds` ' . - 'ON `feeds`.`id` = `items`.`feed_id` '. - 'AND `feeds`.`deleted_at` = 0 ' . - 'AND `feeds`.`user_id` = ? ' . - $prependTo . - 'LEFT OUTER JOIN `*PREFIX*news_folders` `folders` ' . - 'ON `folders`.`id` = `feeds`.`folder_id` ' . - 'WHERE `feeds`.`folder_id` = 0 ' . - 'OR `folders`.`deleted_at` = 0 ' . - 'ORDER BY `items`.`id` DESC'; - } - - public function testDeleteReadOlderThanThresholdDoesNotDeleteBelowThreshold(){ $status = StatusFlag::STARRED | StatusFlag::UNREAD; $sql = 'SELECT COUNT(*) - `feeds`.`articles_per_update` AS `size`, ' . diff --git a/tests/unit/utility/FaviconFetcherTest.php b/tests/unit/utility/FaviconFetcherTest.php index 68a816ea6..777b552b3 100644 --- a/tests/unit/utility/FaviconFetcherTest.php +++ b/tests/unit/utility/FaviconFetcherTest.php @@ -238,7 +238,6 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { public function testEmptyFilePathDoesNotOpenFile() { - $faviconPath = "owncloud/core/img/favicon.png"; $url = ''; $this->fileFactory->expects($this->never()) @@ -248,7 +247,6 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { } public function testInvalidHostnameDoesNotOpenFile() { - $faviconPath = "owncloud/core/img/favicon.png"; $url = "a.b_c.de"; $this->fileFactory->expects($this->never()) @@ -259,7 +257,6 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { public function testInvalidHostnameDoesNotOpenFileHttp() { - $faviconPath = "owncloud/core/img/favicon.png"; $url = "http://a.b_c.de"; $this->fileFactory->expects($this->never()) |