SignApp fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
ef4b59d341
commit
305481688b
|
@ -232,12 +232,12 @@ class SignAppTest 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())
|
||||||
|
@ -276,12 +276,12 @@ class SignAppTest 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())
|
||||||
|
|
Loading…
Reference in New Issue