aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/util.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-03-26 14:51:33 +0100
committerLukas Reschke <lukas@owncloud.com>2015-03-28 13:59:22 +0100
commit65202d2a18aca3b253ce5f3c7c9af17ee6d12e52 (patch)
tree04453d95db5dc3df386188cd85032052fded6db9 /tests/lib/util.php
parentd3752ca1e925c3aed46c13f7ea26c8f540db05e0 (diff)
downloadnextcloud-server-65202d2a18aca3b253ce5f3c7c9af17ee6d12e52.tar.gz
nextcloud-server-65202d2a18aca3b253ce5f3c7c9af17ee6d12e52.zip
Add check for activated local memcache
Also used the opportunity to refactor it into an AppFramework controller so that we can unit test it. Fixes https://github.com/owncloud/core/issues/14956
Diffstat (limited to 'tests/lib/util.php')
-rw-r--r--tests/lib/util.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/tests/lib/util.php b/tests/lib/util.php
index 7d9064e0a2f..49399c8cf01 100644
--- a/tests/lib/util.php
+++ b/tests/lib/util.php
@@ -129,14 +129,6 @@ class Test_Util extends \Test\TestCase {
$this->assertEquals($expected, \OC_Util::fileInfoLoaded());
}
- public function testIsInternetConnectionEnabled() {
- \OC_Config::setValue("has_internet_connection", false);
- $this->assertFalse(\OC_Util::isInternetConnectionEnabled());
-
- \OC_Config::setValue("has_internet_connection", true);
- $this->assertTrue(\OC_Util::isInternetConnectionEnabled());
- }
-
function testGenerateRandomBytes() {
$result = strlen(OC_Util::generateRandomBytes(59));
$this->assertEquals(59, $result);