]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Twitter/Statuses/MentionsTest.php
fb9a6b0b29aa2f6e0de1629d147c82de06d82286
[friendica.git] / tests / src / Module / Api / Twitter / Statuses / MentionsTest.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 MentionsTest extends ApiTest
8 {
9         /**
10          * Test the api_statuses_mentions() function.
11          *
12          * @return void
13          */
14         public function testApiStatusesMentions()
15         {
16                 /*
17                 $this->app->setLoggedInUserNickname($this->selfUser['nick']);
18                 $_REQUEST['max_id'] = 10;
19                 $result             = api_statuses_mentions('json');
20                 self::assertEmpty($result['status']);
21                 // We should test with mentions in the database.
22                 */
23         }
24
25         /**
26          * Test the api_statuses_mentions() function with a negative page parameter.
27          *
28          * @return void
29          */
30         public function testApiStatusesMentionsWithNegativePage()
31         {
32                 // $_REQUEST['page'] = -2;
33                 // $result           = api_statuses_mentions('json');
34                 // self::assertEmpty($result['status']);
35         }
36
37         /**
38          * Test the api_statuses_mentions() function with an unallowed user.
39          *
40          * @return void
41          */
42         public function testApiStatusesMentionsWithUnallowedUser()
43         {
44                 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
45                 // BasicAuth::setCurrentUserID();
46                 // api_statuses_mentions('json');
47         }
48
49         /**
50          * Test the api_statuses_mentions() function with an RSS result.
51          *
52          * @return void
53          */
54         public function testApiStatusesMentionsWithRss()
55         {
56                 // $result = api_statuses_mentions('rss');
57                 // self::assertXml($result, 'statuses');
58         }
59 }