3 namespace Friendica\Test\src\Module\Api\Twitter\Blocks;
5 use Friendica\App\Router;
7 use Friendica\Module\Api\Twitter\Blocks\Lists;
8 use Friendica\Test\src\Module\Api\ApiTest;
10 class ListsTest extends ApiTest
13 * Test the api_statuses_f() function.
15 public function testApiStatusesFWithBlocks()
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();
20 $json = $this->toJson($response);
22 self::assertIsArray($json->users);
26 * Test the api_blocks_list() function an undefined cursor GET variable.
30 public function testApiBlocksListWithUndefinedCursor()
32 self::markTestIncomplete('Needs refactoring of Lists - replace filter_input() with $request parameter checks');
34 // $_GET['cursor'] = 'undefined';
35 // self::assertFalse(api_blocks_list('json'));