diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-08-25 18:07:40 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-08-25 18:07:40 +0200 |
commit | f3561e2349e0a3bac44cda9716f5cd373799a9b9 (patch) | |
tree | dde00409c3791a18f4d375d02ce38887687a97b0 /tests | |
parent | 840a2a7788a367b075ea4e07d7dc4adc4a4fa2ce (diff) | |
download | nextcloud-server-f3561e2349e0a3bac44cda9716f5cd373799a9b9.tar.gz nextcloud-server-f3561e2349e0a3bac44cda9716f5cd373799a9b9.zip |
Explicitly specify status code 200 as response code
Potentially fixes https://github.com/owncloud/core/issues/17586
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/connector/sabre/DummyGetResponsePluginTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
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)); } |