]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Twitter/Friends/ListsTest.php
Reenable Twitter/Search test
[friendica.git] / tests / src / Module / Api / Twitter / Friends / ListsTest.php
1 <?php
2
3 namespace Friendica\Test\src\Module\Api\Twitter\Friends;
4
5 use Friendica\App\Router;
6 use Friendica\DI;
7 use Friendica\Module\Api\Twitter\Friends\Lists;
8 use Friendica\Test\src\Module\Api\ApiTest;
9
10 class ListsTest extends ApiTest
11 {
12         /**
13          * Test the api_statuses_f() function.
14          *
15          * @return void
16          */
17         public function testApiStatusesFWithFriends()
18         {
19                 $lists    = new Lists(DI::app(), DI::l10n(), DI::baseUrl(), DI::args(), DI::logger(), DI::profiler(), DI::apiResponse(), ['REQUEST_METHOD' => Router::GET]);
20                 $response = $lists->run();
21
22                 $json = $this->toJson($response);
23
24                 self::assertIsArray($json->users);
25         }
26
27         /**
28          * Test the api_statuses_f() function an undefined cursor GET variable.
29          *
30          * @return void
31          */
32         public function testApiStatusesFWithUndefinedCursor()
33         {
34                 self::markTestIncomplete('Needs refactoring of Lists - replace filter_input() with $request parameter checks');
35
36                 // $_GET['cursor'] = 'undefined';
37                 // self::assertFalse(api_statuses_f('friends'));
38         }
39 }