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