summaryrefslogtreecommitdiffstats
path: root/tests/lib/Command/Integrity/SignCoreTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Command/Integrity/SignCoreTest.php')
-rw-r--r--tests/lib/Command/Integrity/SignCoreTest.php36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/lib/Command/Integrity/SignCoreTest.php b/tests/lib/Command/Integrity/SignCoreTest.php
index 9bab016ec8f..36376ef0e7d 100644
--- a/tests/lib/Command/Integrity/SignCoreTest.php
+++ b/tests/lib/Command/Integrity/SignCoreTest.php
@@ -54,12 +54,12 @@ class SignCoreTest extends TestCase {
->expects($this->at(0))
->method('getOption')
->with('privateKey')
- ->will($this->returnValue(null));
+ ->willReturn(null);
$inputInterface
->expects($this->at(1))
->method('getOption')
->with('certificate')
- ->will($this->returnValue('Certificate'));
+ ->willReturn('Certificate');
$outputInterface
->expects($this->at(0))
@@ -77,12 +77,12 @@ class SignCoreTest extends TestCase {
->expects($this->at(0))
->method('getOption')
->with('privateKey')
- ->will($this->returnValue('privateKey'));
+ ->willReturn('privateKey');
$inputInterface
->expects($this->at(1))
->method('getOption')
->with('certificate')
- ->will($this->returnValue(null));
+ ->willReturn(null);
$outputInterface
->expects($this->at(0))
@@ -100,23 +100,23 @@ class SignCoreTest extends TestCase {
->expects($this->at(0))
->method('getOption')
->with('privateKey')
- ->will($this->returnValue('privateKey'));
+ ->willReturn('privateKey');
$inputInterface
->expects($this->at(1))
->method('getOption')
->with('certificate')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$inputInterface
->expects($this->at(2))
->method('getOption')
->with('path')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$this->fileAccessHelper
->expects($this->at(0))
->method('file_get_contents')
->with('privateKey')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$outputInterface
->expects($this->at(0))
@@ -134,17 +134,17 @@ class SignCoreTest extends TestCase {
->expects($this->at(0))
->method('getOption')
->with('privateKey')
- ->will($this->returnValue('privateKey'));
+ ->willReturn('privateKey');
$inputInterface
->expects($this->at(1))
->method('getOption')
->with('certificate')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$inputInterface
->expects($this->at(2))
->method('getOption')
->with('path')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$this->fileAccessHelper
->expects($this->at(0))
@@ -155,7 +155,7 @@ class SignCoreTest extends TestCase {
->expects($this->at(1))
->method('file_get_contents')
->with('certificate')
- ->will($this->returnValue(false));
+ ->willReturn(false);
$outputInterface
->expects($this->at(0))
@@ -173,17 +173,17 @@ class SignCoreTest extends TestCase {
->expects($this->at(0))
->method('getOption')
->with('privateKey')
- ->will($this->returnValue('privateKey'));
+ ->willReturn('privateKey');
$inputInterface
->expects($this->at(1))
->method('getOption')
->with('certificate')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$inputInterface
->expects($this->at(2))
->method('getOption')
->with('path')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$this->fileAccessHelper
->expects($this->at(0))
@@ -217,17 +217,17 @@ class SignCoreTest extends TestCase {
->expects($this->at(0))
->method('getOption')
->with('privateKey')
- ->will($this->returnValue('privateKey'));
+ ->willReturn('privateKey');
$inputInterface
->expects($this->at(1))
->method('getOption')
->with('certificate')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$inputInterface
->expects($this->at(2))
->method('getOption')
->with('path')
- ->will($this->returnValue('certificate'));
+ ->willReturn('certificate');
$this->fileAccessHelper
->expects($this->at(0))