]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Mastodon/ConversationsTest.php
Move all (inactive) API endpoint specific tests to new structure
[friendica.git] / tests / src / Module / Api / Mastodon / ConversationsTest.php
1 <?php
2
3 namespace Friendica\Test\src\Module\Api\Mastodon;
4
5 use Friendica\Test\src\Module\Api\ApiTest;
6
7 class ConversationsTest extends ApiTest
8 {
9         /**
10          * Test the api_conversation_show() function.
11          *
12          * @return void
13          */
14         public function testApiConversationShow()
15         {
16                 // $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
17                 // api_conversation_show('json');
18         }
19
20         /**
21          * Test the api_conversation_show() function with an ID.
22          *
23          * @return void
24          */
25         public function testApiConversationShowWithId()
26         {
27                 /*
28                 DI::args()->setArgv(['', '', '', 1]);
29                 $_REQUEST['max_id'] = 10;
30                 $_REQUEST['page']   = -2;
31                 $result             = api_conversation_show('json');
32                 self::assertNotEmpty($result['status']);
33                 foreach ($result['status'] as $status) {
34                         self::assertStatus($status);
35                 }
36                 */
37         }
38
39         /**
40          * Test the api_conversation_show() function with an unallowed user.
41          *
42          * @return void
43          */
44         public function testApiConversationShowWithUnallowedUser()
45         {
46                 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
47                 // BasicAuth::setCurrentUserID();
48                 // api_conversation_show('json');
49         }
50 }