Remove test for deprecated way of calling API methods

This commit is contained in:
Philipp 2021-11-12 22:46:18 +01:00
parent e7f84d4934
commit 6b7babd58f
No known key found for this signature in database
GPG key ID: 24A7501396EB5432

View file

@ -470,35 +470,6 @@ class ApiTest extends FixtureTest
);
}
/**
* Test the api_call() function without any result.
*
* @runInSeparateProcess
* @preserveGlobalState disabled
*/
public function testApiCallWithNoResult()
{
// @todo How to test the new API?
/*
global $API;
$API['api_path'] = [
'method' => 'method',
'func' => function () {
return false;
}
];
$_SERVER['REQUEST_METHOD'] = 'method';
$_SERVER['QUERY_STRING'] = 'pagename=api_path';
$args = DI::args()->determine($_SERVER, $_GET);
self::assertEquals(
'{"status":{"error":"Internal Server Error","code":"500 Internal Server Error","request":"api_path"}}',
api_call($this->app, $args)
);
*/
}
/**
* Test the api_call() function with a JSON result.
*