1
0
Fork 0

Adapt API tests for dynamic usage

This commit is contained in:
Philipp Holzer 2021-11-14 23:35:01 +01:00
commit d32f8e5285
Signed by: nupplaPhil
GPG key ID: 24A7501396EB5432
8 changed files with 23 additions and 15 deletions

View file

@ -30,7 +30,7 @@ class DeleteTest extends ApiTest
public function testEmpty()
{
$this->expectException(BadRequestException::class);
Delete::rawContent();
(new Delete())->rawContent();
}
public function testWithoutAuthenticatedUser()
@ -41,7 +41,7 @@ class DeleteTest extends ApiTest
public function testWrong()
{
$this->expectException(BadRequestException::class);
Delete::rawContent(['photo_id' => 1]);
(new Delete(['photo_id' => 1]))->rawContent();
}
public function testWithCorrectPhotoId()