mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Adapt API tests for dynamic usage
This commit is contained in:
parent
cca1be21a3
commit
d32f8e5285
8 changed files with 23 additions and 15 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue