mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 08:14:25 +02:00
Move API\Photo testcases
This commit is contained in:
parent
e477cf215d
commit
f2ca21935e
4 changed files with 37 additions and 50 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Module\Api\Friendica\Photo;
|
||||
|
||||
use Friendica\Module\Api\Friendica\Photoalbum\Delete;
|
||||
use Friendica\Module\Api\Friendica\Photo\Delete;
|
||||
use Friendica\Network\HTTPException\BadRequestException;
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
|
||||
|
@ -14,13 +14,18 @@ class DeleteTest extends ApiTest
|
|||
Delete::rawContent();
|
||||
}
|
||||
|
||||
public function testWithoutAuthenticatedUser()
|
||||
{
|
||||
self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');
|
||||
}
|
||||
|
||||
public function testWrong()
|
||||
{
|
||||
self::expectException(BadRequestException::class);
|
||||
Delete::rawContent(['album' => 'album_name']);
|
||||
Delete::rawContent(['photo_id' => 1]);
|
||||
}
|
||||
|
||||
public function testValid()
|
||||
public function testWithCorrectPhotoId()
|
||||
{
|
||||
self::markTestIncomplete('We need to add a dataset for this.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue