Adapt API tests for dynamic usage

This commit is contained in:
Philipp
2021-11-14 23:35:01 +01:00
parent cca1be21a3
commit d32f8e5285
8 changed files with 23 additions and 15 deletions

View File

@@ -30,13 +30,13 @@ class DeleteTest extends ApiTest
public function testEmpty()
{
$this->expectException(BadRequestException::class);
Delete::rawContent();
(new Delete())->rawContent();
}
public function testWrong()
{
$this->expectException(BadRequestException::class);
Delete::rawContent(['album' => 'album_name']);
(new Delete(['album' => 'album_name']))->rawContent();
}
public function testValid()