]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit test
authorLukas Reschke <lukas@owncloud.com>
Wed, 13 Jan 2016 10:22:44 +0000 (11:22 +0100)
committerLukas Reschke <lukas@owncloud.com>
Wed, 13 Jan 2016 10:22:44 +0000 (11:22 +0100)
No idea why they passed locally before as well on the branch on the PR. Scary...

tests/lib/integritycheck/checkertest.php

index b02849abb1d544b54d0f4d907bbdbc73ed84a035..eee9299e6affa78b9fd836a876634038e58971ab 100644 (file)
@@ -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')