mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:10:10 +00:00
Simplify json testing
This commit is contained in:
parent
6a813eec92
commit
354c2d828a
17 changed files with 45 additions and 66 deletions
|
@ -19,11 +19,7 @@ class VerifyCredentialsTest extends ApiTest
|
|||
$verifyCredentials = new VerifyCredentials(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::GET]);
|
||||
$response = $verifyCredentials->run();
|
||||
|
||||
$body = (string)$response->getBody();
|
||||
|
||||
self::assertJson($body);
|
||||
|
||||
$json = json_decode($body);
|
||||
$json = $this->toJson($response);
|
||||
|
||||
self::assertEquals(48, $json->id);
|
||||
self::assertIsArray($json->emojis);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue