From f01a7748baeb95dbbcf5ca94f579a6e38ec8b971 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 12 May 2014 23:35:40 +0200 Subject: remove more unused code --- tests/unit/db/postgres/ItemMapperTest.php | 9 --------- tests/unit/utility/FaviconFetcherTest.php | 6 ------ 2 files changed, 15 deletions(-) (limited to 'tests') diff --git a/tests/unit/db/postgres/ItemMapperTest.php b/tests/unit/db/postgres/ItemMapperTest.php index 8677d8784..719721fa4 100644 --- a/tests/unit/db/postgres/ItemMapperTest.php +++ b/tests/unit/db/postgres/ItemMapperTest.php @@ -85,15 +85,6 @@ class ItemMapperTest extends \OCA\News\Utility\MapperTestUtility { 'ORDER BY `items`.`id` DESC'; } - private function makeSelectQueryStatus($prependTo, $status) { - $status = (int) $status; - - return $this->makeSelectQuery( - 'AND ((`items`.`status` & ' . $status . ') = ' . $status . ') ' . - $prependTo - ); - } - public function testDeleteReadOlderThanThresholdDoesNotDeleteBelowThreshold(){ $status = StatusFlag::STARRED | StatusFlag::UNREAD; diff --git a/tests/unit/utility/FaviconFetcherTest.php b/tests/unit/utility/FaviconFetcherTest.php index 833154639..68a816ea6 100644 --- a/tests/unit/utility/FaviconFetcherTest.php +++ b/tests/unit/utility/FaviconFetcherTest.php @@ -239,8 +239,6 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { public function testEmptyFilePathDoesNotOpenFile() { $faviconPath = "owncloud/core/img/favicon.png"; - $html = $this->getFaviconHTML($faviconPath); - $url = ''; $this->fileFactory->expects($this->never()) @@ -251,8 +249,6 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { public function testInvalidHostnameDoesNotOpenFile() { $faviconPath = "owncloud/core/img/favicon.png"; - $html = $this->getFaviconHTML($faviconPath); - $url = "a.b_c.de"; $this->fileFactory->expects($this->never()) @@ -264,8 +260,6 @@ class FaviconFetcherTest extends \PHPUnit_Framework_TestCase { public function testInvalidHostnameDoesNotOpenFileHttp() { $faviconPath = "owncloud/core/img/favicon.png"; - $html = $this->getFaviconHTML($faviconPath); - $url = "http://a.b_c.de"; $this->fileFactory->expects($this->never()) -- cgit v1.2.3