diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-26 14:51:33 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-28 13:59:22 +0100 |
commit | 65202d2a18aca3b253ce5f3c7c9af17ee6d12e52 (patch) | |
tree | 04453d95db5dc3df386188cd85032052fded6db9 /tests/lib/util.php | |
parent | d3752ca1e925c3aed46c13f7ea26c8f540db05e0 (diff) | |
download | nextcloud-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.php | 8 |
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); |