From 6b7babd58f5ece97969e81d2ad21df1a60725bef Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 12 Nov 2021 22:46:18 +0100 Subject: [PATCH] Remove test for deprecated way of calling API methods --- tests/legacy/ApiTest.php | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index cf5b09f98..05ad39cf3 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -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. *