]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Twitter/FavoritesTest.php
Reenable Twitter/Search test
[friendica.git] / tests / src / Module / Api / Twitter / FavoritesTest.php
1 <?php
2
3 namespace Friendica\Test\src\Module\Api\Twitter;
4
5 use Friendica\Test\src\Module\Api\ApiTest;
6
7 class FavoritesTest extends ApiTest
8 {
9         /**
10          * Test the api_favorites() function.
11          *
12          * @return void
13          */
14         public function testApiFavorites()
15         {
16                 /*
17                 $_REQUEST['page']   = -1;
18                 $_REQUEST['max_id'] = 10;
19                 $result             = api_favorites('json');
20                 foreach ($result['status'] as $status) {
21                         self::assertStatus($status);
22                 }
23                 */
24         }
25
26         /**
27          * Test the api_favorites() function with an RSS result.
28          *
29          * @return void
30          */
31         public function testApiFavoritesWithRss()
32         {
33                 // $result = api_favorites('rss');
34                 // self::assertXml($result, 'statuses');
35         }
36
37         /**
38          * Test the api_favorites() function with an unallowed user.
39          *
40          * @return void
41          */
42         public function testApiFavoritesWithUnallowedUser()
43         {
44                 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
45                 // BasicAuth::setCurrentUserID();
46                 // api_favorites('json');
47         }
48 }