3 namespace Friendica\Test\src\Module\Api\Twitter\Statuses;
5 use Friendica\Test\src\Module\Api\ApiTest;
7 class MentionsTest extends ApiTest
10 * Test the api_statuses_mentions() function.
14 public function testApiStatusesMentions()
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.
26 * Test the api_statuses_mentions() function with a negative page parameter.
30 public function testApiStatusesMentionsWithNegativePage()
32 // $_REQUEST['page'] = -2;
33 // $result = api_statuses_mentions('json');
34 // self::assertEmpty($result['status']);
38 * Test the api_statuses_mentions() function with an unallowed user.
42 public function testApiStatusesMentionsWithUnallowedUser()
44 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
45 // BasicAuth::setCurrentUserID();
46 // api_statuses_mentions('json');
50 * Test the api_statuses_mentions() function with an RSS result.
54 public function testApiStatusesMentionsWithRss()
56 // $result = api_statuses_mentions('rss');
57 // self::assertXml($result, 'statuses');