summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-08-06 16:51:31 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-08-30 19:00:03 +0200
commit37513f9411035f6edcb78f9f89ceb4f8433f0aa5 (patch)
tree1a5b319c9793e869a41c848e5c8cf16ca241b85a /tests
parent289e9130f35334a6f0cffcedee82da7d9f5082d0 (diff)
downloadnextcloud-server-37513f9411035f6edcb78f9f89ceb4f8433f0aa5.tar.gz
nextcloud-server-37513f9411035f6edcb78f9f89ceb4f8433f0aa5.zip
don't read certificates if ownCloud is not installed
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/security/certificatemanager.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/lib/security/certificatemanager.php b/tests/lib/security/certificatemanager.php
index fab1c208443..092f9efdd18 100644
--- a/tests/lib/security/certificatemanager.php
+++ b/tests/lib/security/certificatemanager.php
@@ -26,7 +26,11 @@ class CertificateManagerTest extends \Test\TestCase {
\OC\Files\Filesystem::tearDown();
\OC_Util::setupFS($this->username);
- $this->certificateManager = new CertificateManager($this->username, new \OC\Files\View());
+ $config = $this->getMock('OCP\IConfig');
+ $config->expects($this->any())->method('getSystemValue')
+ ->with('installed', false)->willReturn(true);
+
+ $this->certificateManager = new CertificateManager($this->username, new \OC\Files\View(), $config);
}
protected function tearDown() {