spelling: response

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref 2023-03-22 00:08:17 -04:00
parent 2f7612d8b1
commit af324f6adf
2 changed files with 6 additions and 6 deletions

View file

@ -49,12 +49,12 @@ class LookupTest extends ApiTest
*/
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, [
'user_id' => static::OTHER_USER['id']
]);
$json = $this->toJson($respone);
$json = $this->toJson($response);
self::assertOtherUser($json[0]);
}

View file

@ -37,12 +37,12 @@ class SearchTest extends ApiTest
*/
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, [
'q' => static::OTHER_USER['name']
]);
$json = $this->toJson($respone);
$json = $this->toJson($response);
self::assertOtherUser($json[0]);
}
@ -54,13 +54,13 @@ class SearchTest extends ApiTest
*/
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
]))->run($this->httpExceptionMock, [
'q' => static::OTHER_USER['name']
]);
self::assertXml((string)$respone->getBody(), 'users');
self::assertXml((string)$response->getBody(), 'users');
}
/**