1
0
Fork 0

Inherit ApiResponse from Response

This commit is contained in:
Philipp Holzer 2021-11-21 21:52:36 +01:00
commit 537b74f307
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
46 changed files with 326 additions and 277 deletions

View file

@ -31,13 +31,14 @@ class DeleteTest extends ApiTest
public function testEmpty()
{
$this->expectException(BadRequestException::class);
(new Delete(DI::l10n()))->rawContent();
(new Delete(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))->run();
}
public function testWrong()
{
$this->expectException(BadRequestException::class);
(new Delete(DI::l10n(), ['album' => 'album_name']))->rawContent();
(new Delete(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), []))->run(['album' => 'album_name']);
}
public function testValid()