Expose etag through JSON responses for child elements
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user