Photo delete is moved as well

This commit is contained in:
Michael 2021-11-10 23:31:42 +00:00
commit 293775ab4a
4 changed files with 80 additions and 57 deletions

View file

@ -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');
}
/**