diff options
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php')
-rw-r--r-- | apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php b/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php index 28e4bd7e836..797f306c7ba 100644 --- a/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php +++ b/apps/dav/tests/unit/Connector/Sabre/DummyGetResponsePluginTest.php @@ -43,7 +43,9 @@ class DummyGetResponsePluginTest extends TestCase { public function testInitialize() { /** @var \Sabre\DAV\Server $server */ - $server = $this->getMock('\Sabre\DAV\Server'); + $server = $this->getMockBuilder('\Sabre\DAV\Server') + ->disableOriginalConstructor() + ->getMock(); $server ->expects($this->once()) ->method('on') @@ -55,9 +57,13 @@ class DummyGetResponsePluginTest extends TestCase { public function testHttpGet() { /** @var \Sabre\HTTP\RequestInterface $request */ - $request = $this->getMock('\Sabre\HTTP\RequestInterface'); + $request = $this->getMockBuilder('\Sabre\HTTP\RequestInterface') + ->disableOriginalConstructor() + ->getMock(); /** @var \Sabre\HTTP\ResponseInterface $response */ - $response = $server = $this->getMock('\Sabre\HTTP\ResponseInterface'); + $response = $server = $this->getMockBuilder('\Sabre\HTTP\ResponseInterface') + ->disableOriginalConstructor() + ->getMock(); $response ->expects($this->once()) ->method('setBody'); |