]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Friendica/Photoalbum/UpdateTest.php
Move API\Photo testcases
[friendica.git] / tests / src / Module / Api / Friendica / Photoalbum / UpdateTest.php
1 <?php
2
3 namespace Friendica\Test\src\Module\Api\Friendica\Photoalbum;
4
5 use Friendica\Module\Api\Friendica\Photoalbum\Update;
6 use Friendica\Network\HTTPException\BadRequestException;
7 use Friendica\Test\src\Module\Api\ApiTest;
8
9 class UpdateTest extends ApiTest
10 {
11         public function testEmpty()
12         {
13                 self::expectException(BadRequestException::class);
14                 Update::rawContent();
15         }
16
17         public function testTooFewArgs()
18         {
19                 self::expectException(BadRequestException::class);
20                 Update::rawContent(['album' => 'album_name']);
21         }
22
23         public function testWrongUpdate()
24         {
25                 self::expectException(BadRequestException::class);
26                 Update::rawContent(['album' => 'album_name', 'album_new' => 'album_name']);
27         }
28
29         public function testWithoutAuthenticatedUser()
30         {
31                 self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');
32         }
33
34         public function testValid()
35         {
36                 self::markTestIncomplete('We need to add a dataset for this.');
37         }
38 }