diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-22 10:06:07 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 13:34:42 +0100 |
commit | bc16b0524382f4639dc9a1c542a661e4baf02880 (patch) | |
tree | b671e33c2ad6f09fd3fca6716300bf65550688d5 /tests/lib/Command/Integrity | |
parent | 305481688b5c0a94061aa4fccee8eba3c8167b7e (diff) | |
download | nextcloud-server-bc16b0524382f4639dc9a1c542a661e4baf02880.tar.gz nextcloud-server-bc16b0524382f4639dc9a1c542a661e4baf02880.zip |
Fix signCoretests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Command/Integrity')
-rw-r--r-- | tests/lib/Command/Integrity/SignCoreTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Command/Integrity/SignCoreTest.php b/tests/lib/Command/Integrity/SignCoreTest.php index c496b864008..6f67b86f478 100644 --- a/tests/lib/Command/Integrity/SignCoreTest.php +++ b/tests/lib/Command/Integrity/SignCoreTest.php @@ -150,7 +150,7 @@ class SignCoreTest 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') @@ -189,12 +189,12 @@ class SignCoreTest 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()) @@ -233,12 +233,12 @@ class SignCoreTest 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()) |