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