]> git.mxchange.org Git - friendica.git/commitdiff
Remove test for deprecated way of calling API methods
authorPhilipp <admin@philipp.info>
Fri, 12 Nov 2021 21:46:18 +0000 (22:46 +0100)
committerPhilipp <admin@philipp.info>
Fri, 12 Nov 2021 21:46:18 +0000 (22:46 +0100)
tests/legacy/ApiTest.php

index cf5b09f98c90c867c63f88929e6f61c7c2e98c8a..05ad39cf3f9f4c99b152b56f6b2390bad996cffd 100644 (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.
         *