3 namespace Friendica\Test\src\Module;
5 use Friendica\Test\src\Module\Api\ApiTest;
7 class BaseApiTest extends ApiTest
9 public function withWrongAuth()
11 self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');
19 $_SESSION['authenticated'] = false;
20 $_SERVER['REQUEST_METHOD'] = 'method';
21 $_SERVER['QUERY_STRING'] = 'pagename=api_path';
23 $args = DI::args()->determine($_SERVER, $_GET);
26 '{"status":{"error":"This API requires login","code":"401 Unauthorized","request":"api_path"}}',
27 api_call($this->app, $args)