mirror of
https://github.com/friendica/friendica
synced 2025-04-25 06:30:11 +00:00
Replace DI::app() with DI::appHelper() in more tests
This commit is contained in:
parent
b2a383a9cb
commit
ba65cad1cd
31 changed files with 56 additions and 56 deletions
|
@ -21,7 +21,7 @@ class ShowTest extends ApiTestCase
|
|||
*/
|
||||
public function testApiUsersShow()
|
||||
{
|
||||
$response = (new Show(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
$response = (new Show(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock);
|
||||
|
||||
$json = $this->toJson($response);
|
||||
|
@ -41,7 +41,7 @@ class ShowTest extends ApiTestCase
|
|||
*/
|
||||
public function testApiUsersShowWithXml()
|
||||
{
|
||||
$response = (new Show(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], [
|
||||
$response = (new Show(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], [
|
||||
'extension' => ICanCreateResponses::TYPE_XML
|
||||
]))->run($this->httpExceptionMock);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue