summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-22 10:04:28 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 13:34:42 +0100
commit305481688b5c0a94061aa4fccee8eba3c8167b7e (patch)
tree41e0d7b47b68f71dcb8c696031775e5c2ec2788c /tests/lib
parentef4b59d3417ff9069425d7ae7a8e6e4f8165f7fb (diff)
downloadnextcloud-server-305481688b5c0a94061aa4fccee8eba3c8167b7e.tar.gz
nextcloud-server-305481688b5c0a94061aa4fccee8eba3c8167b7e.zip
SignApp fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Command/Integrity/SignAppTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lib/Command/Integrity/SignAppTest.php b/tests/lib/Command/Integrity/SignAppTest.php
index b30d465fcaa..689b046e24e 100644
--- a/tests/lib/Command/Integrity/SignAppTest.php
+++ b/tests/lib/Command/Integrity/SignAppTest.php
@@ -232,12 +232,12 @@ class SignAppTest extends TestCase {
->expects($this->at(0))
->method('file_get_contents')
->with('privateKey')
- ->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key'));
+ ->willReturn(file_get_contents(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key'));
$this->fileAccessHelper
->expects($this->at(1))
->method('file_get_contents')
->with('certificate')
- ->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt'));
+ ->willReturn(file_get_contents(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt'));
$this->checker
->expects($this->once())
@@ -276,12 +276,12 @@ class SignAppTest extends TestCase {
->expects($this->at(0))
->method('file_get_contents')
->with('privateKey')
- ->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key'));
+ ->willReturn(file_get_contents(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key'));
$this->fileAccessHelper
->expects($this->at(1))
->method('file_get_contents')
->with('certificate')
- ->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt'));
+ ->willReturn(file_get_contents(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt'));
$this->checker
->expects($this->once())