diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-04-29 15:16:53 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2020-04-29 15:26:46 +0200 |
commit | df669a29360a3ec69e87829f15571f261b39280b (patch) | |
tree | a91f28cd4f5140a7baf47b5cbb1051d83a62b6c0 /tests/Core | |
parent | b219eadb8f3f459f2c71e937dfd3542f0792da8e (diff) | |
download | nextcloud-server-df669a29360a3ec69e87829f15571f261b39280b.tar.gz nextcloud-server-df669a29360a3ec69e87829f15571f261b39280b.zip |
Set etag for capabilities endpoint
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'tests/Core')
-rw-r--r-- | tests/Core/Controller/OCSControllerTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Core/Controller/OCSControllerTest.php b/tests/Core/Controller/OCSControllerTest.php index e860ff6d641..c7cf601282b 100644 --- a/tests/Core/Controller/OCSControllerTest.php +++ b/tests/Core/Controller/OCSControllerTest.php @@ -113,6 +113,7 @@ class OCSControllerTest extends TestCase { $result['capabilities'] = $capabilities; $expected = new DataResponse($result); + $expected->setETag(md5(json_encode($result))); $this->assertEquals($expected, $this->controller->getCapabilities()); } @@ -146,6 +147,7 @@ class OCSControllerTest extends TestCase { $result['capabilities'] = $capabilities; $expected = new DataResponse($result); + $expected->setETag(md5(json_encode($result))); $this->assertEquals($expected, $this->controller->getCapabilities()); } |