Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
$result['capabilities'] = $this->capabilitiesManager->getCapabilities(true);
}
- return new DataResponse($result);
+ $response = new DataResponse($result);
+ $response->setETag(md5(json_encode($result)));
+ return $response;
}
/**
$result['capabilities'] = $capabilities;
$expected = new DataResponse($result);
+ $expected->setETag(md5(json_encode($result)));
$this->assertEquals($expected, $this->controller->getCapabilities());
}
$result['capabilities'] = $capabilities;
$expected = new DataResponse($result);
+ $expected->setETag(md5(json_encode($result)));
$this->assertEquals($expected, $this->controller->getCapabilities());
}