From 308224eadac5f455d54113d956b0ffa46ed3c1fe Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 23:42:56 +0200 Subject: remove more unused code --- tests/unit/db/postgres/ItemMapperTest.php | 15 --------------- tests/unit/utility/FaviconFetcherTest.php | 3 --- 2 files changed, 18 deletions(-) (limited to 'tests') 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()) -- cgit v1.2.3