From 65202d2a18aca3b253ce5f3c7c9af17ee6d12e52 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Thu, 26 Mar 2015 14:51:33 +0100 Subject: 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 --- tests/lib/util.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/lib/util.php') 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); -- cgit v1.2.3