1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00

fix chat listing

This commit is contained in:
Robin Appelman 2017-08-08 13:08:09 +02:00
commit 06379c2363
3 changed files with 40 additions and 4 deletions

View file

@ -50,4 +50,12 @@ abstract class ControllerTest extends TestCase {
protected function getResponseData() {
return $this->responseData;
}
protected function assertResponseData($expected) {
if (!is_string($expected)) {
$expected = json_encode($expected);
}
$this->assertEquals($expected, $this->getResponseData());
}
}