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:
parent
611e7c3415
commit
06379c2363
3 changed files with 40 additions and 4 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue