diff options
-rw-r--r-- | lib/private/connector/sabre/dummygetresponseplugin.php | 1 | ||||
-rw-r--r-- | tests/lib/connector/sabre/DummyGetResponsePluginTest.php | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/private/connector/sabre/dummygetresponseplugin.php b/lib/private/connector/sabre/dummygetresponseplugin.php index 6057236b635..6f5a009d084 100644 --- a/lib/private/connector/sabre/dummygetresponseplugin.php +++ b/lib/private/connector/sabre/dummygetresponseplugin.php @@ -61,6 +61,7 @@ class DummyGetResponsePlugin extends \Sabre\DAV\ServerPlugin { fwrite($stream, $string); rewind($stream); + $response->setStatus(200); $response->setBody($stream); return false; diff --git a/tests/lib/connector/sabre/DummyGetResponsePluginTest.php b/tests/lib/connector/sabre/DummyGetResponsePluginTest.php index fa8f0694625..096c2c5f0d2 100644 --- a/tests/lib/connector/sabre/DummyGetResponsePluginTest.php +++ b/tests/lib/connector/sabre/DummyGetResponsePluginTest.php @@ -59,6 +59,10 @@ class DummyGetResponsePluginTest extends TestCase { $response ->expects($this->once()) ->method('setBody'); + $response + ->expects($this->once()) + ->method('setStatus') + ->with(200); $this->assertSame(false, $this->dummyGetResponsePlugin->httpGet($request, $response)); } |