mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:50:12 +00:00
Rename ApipResponse->exit* methods to better show their meaning
This commit is contained in:
parent
960171c4e0
commit
642baa1f2a
68 changed files with 88 additions and 88 deletions
|
@ -285,7 +285,7 @@ class ApiResponseTest extends MockedTest
|
|||
$twitterUser = \Mockery::mock(User::class);
|
||||
|
||||
$response = new ApiResponse($l10n, $args, new NullLogger(), $baseUrl, $twitterUser);
|
||||
$response->exitWithJson(['some_data']);
|
||||
$response->addJsonContent(['some_data']);
|
||||
|
||||
self::assertEquals('["some_data"]', $response->getContent());
|
||||
}
|
||||
|
@ -302,7 +302,7 @@ class ApiResponseTest extends MockedTest
|
|||
$twitterUser = \Mockery::mock(User::class);
|
||||
|
||||
$response = new ApiResponse($l10n, $args, new NullLogger(), $baseUrl, $twitterUser, [], 'JsonPCallback');
|
||||
$response->exitWithJson(['some_data']);
|
||||
$response->addJsonContent(['some_data']);
|
||||
|
||||
self::assertEquals('JsonPCallback(["some_data"])', $response->getContent());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue