summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-01-13 11:22:44 +0100
committerLukas Reschke <lukas@owncloud.com>2016-01-13 11:22:44 +0100
commit0c65f4b2c69f6147627c0a9fad721633f5b82f1e (patch)
treea702fbf2f303efb321161e41c21f8777aefa10fc /tests
parentf0c869d22ef369e2111fc8ea08f969e186993693 (diff)
downloadnextcloud-server-0c65f4b2c69f6147627c0a9fad721633f5b82f1e.tar.gz
nextcloud-server-0c65f4b2c69f6147627c0a9fad721633f5b82f1e.zip
Fix unit test
No idea why they passed locally before as well on the branch on the PR. Scary...
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/integritycheck/checkertest.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lib/integritycheck/checkertest.php b/tests/lib/integritycheck/checkertest.php
index b02849abb1d..eee9299e6af 100644
--- a/tests/lib/integritycheck/checkertest.php
+++ b/tests/lib/integritycheck/checkertest.php
@@ -295,6 +295,16 @@ class CheckerTest extends TestCase {
}
public function testVerifyAppSignatureWithTamperedFilesAndAlternatePath() {
+ $this->environmentHelper
+ ->expects($this->once())
+ ->method('getChannel')
+ ->will($this->returnValue('stable'));
+ $this->config
+ ->expects($this->any())
+ ->method('getSystemValue')
+ ->with('integrity.check.disabled', false)
+ ->will($this->returnValue(false));
+
$this->appLocator
->expects($this->never())
->method('getAppPath')