mirror of
https://github.com/friendica/friendica
synced 2025-01-07 02:44:43 +00:00
spelling: response
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
2f7612d8b1
commit
af324f6adf
2 changed files with 6 additions and 6 deletions
|
@ -49,12 +49,12 @@ class LookupTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiUsersLookupWithUserId()
|
public function testApiUsersLookupWithUserId()
|
||||||
{
|
{
|
||||||
$respone = (new Lookup(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
$response = (new Lookup(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||||
->run($this->httpExceptionMock, [
|
->run($this->httpExceptionMock, [
|
||||||
'user_id' => static::OTHER_USER['id']
|
'user_id' => static::OTHER_USER['id']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$json = $this->toJson($respone);
|
$json = $this->toJson($response);
|
||||||
|
|
||||||
self::assertOtherUser($json[0]);
|
self::assertOtherUser($json[0]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,12 +37,12 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiUsersSearch()
|
public function testApiUsersSearch()
|
||||||
{
|
{
|
||||||
$respone = (new Search(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
$response = (new Search(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||||
->run($this->httpExceptionMock, [
|
->run($this->httpExceptionMock, [
|
||||||
'q' => static::OTHER_USER['name']
|
'q' => static::OTHER_USER['name']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$json = $this->toJson($respone);
|
$json = $this->toJson($response);
|
||||||
|
|
||||||
self::assertOtherUser($json[0]);
|
self::assertOtherUser($json[0]);
|
||||||
}
|
}
|
||||||
|
@ -54,13 +54,13 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiUsersSearchWithXml()
|
public function testApiUsersSearchWithXml()
|
||||||
{
|
{
|
||||||
$respone = (new Search(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], [
|
$response = (new Search(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], [
|
||||||
'extension' => ICanCreateResponses::TYPE_XML
|
'extension' => ICanCreateResponses::TYPE_XML
|
||||||
]))->run($this->httpExceptionMock, [
|
]))->run($this->httpExceptionMock, [
|
||||||
'q' => static::OTHER_USER['name']
|
'q' => static::OTHER_USER['name']
|
||||||
]);
|
]);
|
||||||
|
|
||||||
self::assertXml((string)$respone->getBody(), 'users');
|
self::assertXml((string)$response->getBody(), 'users');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue