diff options
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php index d06c70d7ad1..605b365475f 100644 --- a/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/BlockLegacyClientPluginTest.php @@ -78,13 +78,13 @@ class BlockLegacyClientPluginTest extends TestCase { ->expects($this->once()) ->method('getHeader') ->with('User-Agent') - ->will($this->returnValue($userAgent)); + ->willReturn($userAgent); $this->config ->expects($this->once()) ->method('getSystemValue') ->with('minimum.supported.desktop.version', '2.0.0') - ->will($this->returnValue('1.7.0')); + ->willReturn('1.7.0'); $this->blockLegacyClientVersionPlugin->beforeHandler($request); } @@ -113,13 +113,13 @@ class BlockLegacyClientPluginTest extends TestCase { ->expects($this->once()) ->method('getHeader') ->with('User-Agent') - ->will($this->returnValue($userAgent)); + ->willReturn($userAgent); $this->config ->expects($this->once()) ->method('getSystemValue') ->with('minimum.supported.desktop.version', '2.0.0') - ->will($this->returnValue('1.7.0')); + ->willReturn('1.7.0'); $this->blockLegacyClientVersionPlugin->beforeHandler($request); } @@ -131,7 +131,7 @@ class BlockLegacyClientPluginTest extends TestCase { ->expects($this->once()) ->method('getHeader') ->with('User-Agent') - ->will($this->returnValue(null)); + ->willReturn(null); $this->blockLegacyClientVersionPlugin->beforeHandler($request); } |