summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 23:35:40 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-12 23:35:40 +0200
commitf01a7748baeb95dbbcf5ca94f579a6e38ec8b971 (patch)
tree1caa9c5d0c6b7d87a451ad816ac7cfb8a44889a0 /tests
parentdc6b021857abf0354f5cfc0e11fba2f92f64f0b4 (diff)
remove more unused code
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/db/postgres/ItemMapperTest.php9
-rw-r--r--tests/unit/utility/FaviconFetcherTest.php6
2 files changed, 0 insertions, 15 deletions
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())