Photo delete is moved as well
This commit is contained in:
parent
02210f285b
commit
293775ab4a
4 changed files with 80 additions and 57 deletions
|
@ -3351,8 +3351,8 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiFrPhotoDelete()
|
||||
{
|
||||
$this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
api_fr_photo_delete('json');
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// api_fr_photo_delete('json');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3362,9 +3362,9 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiFrPhotoDeleteWithoutAuthenticatedUser()
|
||||
{
|
||||
$this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
|
||||
$_SESSION['authenticated'] = false;
|
||||
api_fr_photo_delete('json');
|
||||
// $this->expectException(\Friendica\Network\HTTPException\ForbiddenException::class);
|
||||
// $_SESSION['authenticated'] = false;
|
||||
// api_fr_photo_delete('json');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -3374,9 +3374,9 @@ class ApiTest extends FixtureTest
|
|||
*/
|
||||
public function testApiFrPhotoDeleteWithPhotoId()
|
||||
{
|
||||
$this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
$_REQUEST['photo_id'] = 1;
|
||||
api_fr_photo_delete('json');
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// $_REQUEST['photo_id'] = 1;
|
||||
// api_fr_photo_delete('json');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue