mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:10:14 +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
|
@ -32,7 +32,7 @@ class UploadTest extends ApiTestCase
|
|||
{
|
||||
$this->expectException(BadRequestException::class);
|
||||
|
||||
(new Upload(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
(new Upload(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ class UploadTest extends ApiTestCase
|
|||
$this->expectException(UnauthorizedException::class);
|
||||
AuthTestConfig::$authenticated = false;
|
||||
|
||||
(new Upload(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
(new Upload(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock);
|
||||
}
|
||||
|
||||
|
@ -65,7 +65,7 @@ class UploadTest extends ApiTestCase
|
|||
]
|
||||
];
|
||||
|
||||
(new Upload(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
(new Upload(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock);
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ class UploadTest extends ApiTestCase
|
|||
]
|
||||
];
|
||||
|
||||
$response = (new Upload(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
$response = (new Upload(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock);
|
||||
|
||||
$media = $this->toJson($response);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue