Expose etag through JSON responses for child elements

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-11-10 17:15:05 +01:00
parent 6a8e607134
commit a46d31caf2
10 changed files with 35 additions and 9 deletions

View File

@@ -72,7 +72,7 @@ class BoardApiControllerTest extends \Test\TestCase {
$expected = new DataResponse($boards, HTTP::STATUS_OK);
$actual = $this->controller->index();
$actual->setETag(null);
$this->assertEquals($expected, $actual);
}
@@ -90,6 +90,7 @@ class BoardApiControllerTest extends \Test\TestCase {
->will($this->returnValue($boardId));
$expected = new DataResponse($board, HTTP::STATUS_OK);
$expected->setETag($board->getETag());
$actual = $this->controller->get();
$this->assertEquals($expected, $actual);
}