summaryrefslogtreecommitdiffstats
path: root/tests/lib/Security/TrustedDomainHelperTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Security/TrustedDomainHelperTest.php')
-rw-r--r--tests/lib/Security/TrustedDomainHelperTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Security/TrustedDomainHelperTest.php b/tests/lib/Security/TrustedDomainHelperTest.php
index f3ee14dead1..2796dead0e2 100644
--- a/tests/lib/Security/TrustedDomainHelperTest.php
+++ b/tests/lib/Security/TrustedDomainHelperTest.php
@@ -34,11 +34,11 @@ class TrustedDomainHelperTest extends \Test\TestCase {
$this->config->expects($this->at(0))
->method('getSystemValue')
->with('overwritehost')
- ->will($this->returnValue(''));
+ ->willReturn('');
$this->config->expects($this->at(1))
->method('getSystemValue')
->with('trusted_domains')
- ->will($this->returnValue($trustedDomains));
+ ->willReturn($trustedDomains);
$trustedDomainHelper = new TrustedDomainHelper($this->config);
$this->assertEquals($result, $trustedDomainHelper->isTrustedDomain($testDomain));
@@ -122,7 +122,7 @@ class TrustedDomainHelperTest extends \Test\TestCase {
$this->config->expects($this->at(0))
->method('getSystemValue')
->with('overwritehost')
- ->will($this->returnValue('myproxyhost'));
+ ->willReturn('myproxyhost');
$trustedDomainHelper = new TrustedDomainHelper($this->config);
$this->assertTrue($trustedDomainHelper->isTrustedDomain('myproxyhost'));