mirror of
https://github.com/friendica/friendica
synced 2025-04-24 09:10:17 +00:00
Add newly required constructor parameter to BaseApi-related tests
This commit is contained in:
parent
1b9ec3a214
commit
5d428ac8af
37 changed files with 85 additions and 85 deletions
|
@ -31,7 +31,7 @@ class RateLimitStatusTest extends ApiTest
|
|||
{
|
||||
public function testWithJson()
|
||||
{
|
||||
$response = (new RateLimitStatus(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']))
|
||||
$response = (new RateLimitStatus(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'json']))
|
||||
->run($this->httpExceptionMock);
|
||||
|
||||
$result = $this->toJson($response);
|
||||
|
@ -47,7 +47,7 @@ class RateLimitStatusTest extends ApiTest
|
|||
|
||||
public function testWithXml()
|
||||
{
|
||||
$response = (new RateLimitStatus(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'xml']))
|
||||
$response = (new RateLimitStatus(DI::mstdnError(), DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), [], ['extension' => 'xml']))
|
||||
->run($this->httpExceptionMock);
|
||||
|
||||
self::assertEquals([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue