]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Mastodon/ConversationsTest.php
mark remaining Mastodon tests incomplete because of needed refactoring
[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                 self::markTestIncomplete('Needs Conversations to not set header during call (like at BaseApi::setLinkHeader');
17
18                 // $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
19                 // api_conversation_show('json');
20         }
21
22         /**
23          * Test the api_conversation_show() function with an ID.
24          *
25          * @return void
26          */
27         public function testApiConversationShowWithId()
28         {
29                 self::markTestIncomplete('Needs Conversations to not set header during call (like at BaseApi::setLinkHeader');
30
31                 /*
32                 DI::args()->setArgv(['', '', '', 1]);
33                 $_REQUEST['max_id'] = 10;
34                 $_REQUEST['page']   = -2;
35                 $result             = api_conversation_show('json');
36                 self::assertNotEmpty($result['status']);
37                 foreach ($result['status'] as $status) {
38                         self::assertStatus($status);
39                 }
40                 */
41         }
42
43         /**
44          * Test the api_conversation_show() function with an unallowed user.
45          *
46          * @return void
47          */
48         public function testApiConversationShowWithUnallowedUser()
49         {
50                 self::markTestIncomplete('Needs Conversations to not set header during call (like at BaseApi::setLinkHeader');
51
52                 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
53                 // BasicAuth::setCurrentUserID();
54                 // api_conversation_show('json');
55         }
56 }