Fix signCoretests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-11-22 10:06:07 +01:00
parent 305481688b
commit bc16b05243
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 5 additions and 5 deletions

View File

@ -150,7 +150,7 @@ class SignCoreTest extends TestCase {
->expects($this->at(0)) ->expects($this->at(0))
->method('file_get_contents') ->method('file_get_contents')
->with('privateKey') ->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 $this->fileAccessHelper
->expects($this->at(1)) ->expects($this->at(1))
->method('file_get_contents') ->method('file_get_contents')
@ -189,12 +189,12 @@ class SignCoreTest extends TestCase {
->expects($this->at(0)) ->expects($this->at(0))
->method('file_get_contents') ->method('file_get_contents')
->with('privateKey') ->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 $this->fileAccessHelper
->expects($this->at(1)) ->expects($this->at(1))
->method('file_get_contents') ->method('file_get_contents')
->with('certificate') ->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 $this->checker
->expects($this->once()) ->expects($this->once())
@ -233,12 +233,12 @@ class SignCoreTest extends TestCase {
->expects($this->at(0)) ->expects($this->at(0))
->method('file_get_contents') ->method('file_get_contents')
->with('privateKey') ->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 $this->fileAccessHelper
->expects($this->at(1)) ->expects($this->at(1))
->method('file_get_contents') ->method('file_get_contents')
->with('certificate') ->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 $this->checker
->expects($this->once()) ->expects($this->once())