Skip to content

Commit

Permalink
Pass real core.key core.crt in SignAppTest to fix 'Trying to access a…
Browse files Browse the repository at this point in the history
…rray offset on value of type bool'
  • Loading branch information
phil-davis committed Dec 19, 2019
1 parent e0e4fd1 commit 66909a2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/lib/Command/Integrity/SignAppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,23 +221,23 @@ public function testExecute() {
->expects($this->at(1))
->method('getOption')
->with('privateKey')
->will($this->returnValue('privateKey'));
->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key'));
$inputInterface
->expects($this->at(2))
->method('getOption')
->with('certificate')
->will($this->returnValue('certificate'));
->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt'));

$this->fileAccessHelper
->expects($this->at(0))
->method('file_get_contents')
->with('privateKey')
->will($this->returnValue(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key'));
->with(\OC::$SERVERROOT . '/tests/data/integritycheck/core.key')
->will($this->returnValue(\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'));
->with(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt')
->will($this->returnValue(\file_get_contents(\OC::$SERVERROOT . '/tests/data/integritycheck/core.crt')));

$this->checker
->expects($this->once())
Expand Down

0 comments on commit 66909a2

Please sign in to comment.