mirror of
https://github.com/friendica/friendica
synced 2025-04-23 01:50:10 +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
|
@ -31,7 +31,7 @@ class DestroyTest extends ApiTestCase
|
|||
{
|
||||
$this->expectException(BadRequestException::class);
|
||||
|
||||
(new Destroy(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
(new Destroy(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ class DestroyTest extends ApiTestCase
|
|||
*/
|
||||
public function testApiFavoritesCreateDestroyWithDestroyAction()
|
||||
{
|
||||
$response = (new Destroy(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
$response = (new Destroy(DI::mstdnError(), DI::appHelper(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))
|
||||
->run($this->httpExceptionMock, [
|
||||
'id' => 3
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue