Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-05-04 11:22:01 +0300
committerGitHub <noreply@github.com>2020-05-04 11:22:01 +0300
commita93d182bac88707002b70d2dcc881b2a1020b749 (patch)
treede61698f8934b3f23dd9cb4b4463869559bbc8ed /tests
parente10226429987f6bff3a11bf9c52f3398f2ee039c (diff)
parentdf669a29360a3ec69e87829f15571f261b39280b (diff)
Merge pull request #20722 from nextcloud/enh/20693/etag-capabilities
Set etag for capabilities endpoint
Diffstat (limited to 'tests')
-rw-r--r--tests/Core/Controller/OCSControllerTest.php2
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());
}