3 namespace Friendica\Test\src\Module\Api\Friendica\Photoalbum;
5 use Friendica\Module\Api\Friendica\Photoalbum\Update;
6 use Friendica\Network\HTTPException\BadRequestException;
7 use Friendica\Test\src\Module\Api\ApiTest;
9 class UpdateTest extends ApiTest
11 public function testEmpty()
13 self::expectException(BadRequestException::class);
17 public function testTooFewArgs()
19 self::expectException(BadRequestException::class);
20 Update::rawContent(['album' => 'album_name']);
23 public function testWrongUpdate()
25 self::expectException(BadRequestException::class);
26 Update::rawContent(['album' => 'album_name', 'album_new' => 'album_name']);
29 public function testWithoutAuthenticatedUser()
31 self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');
34 public function testValid()
36 self::markTestIncomplete('We need to add a dataset for this.');