]> git.mxchange.org Git - friendica.git/commitdiff
Move API User tests
authorPhilipp <admin@philipp.info>
Thu, 30 Dec 2021 19:51:21 +0000 (20:51 +0100)
committerPhilipp <admin@philipp.info>
Thu, 30 Dec 2021 19:51:21 +0000 (20:51 +0100)
tests/legacy/ApiTest.php
tests/src/Factory/Api/Twitter/UserTest.php

index a76a59f5cc19d0df294b228b4a7c69381a7e0336..eda1c6fdbe0c1ba73d3be79427b01d40ba197a20 100644 (file)
@@ -153,15 +153,7 @@ class ApiTest extends FixtureTest
                self::assertEquals($this->selfUser['id'], BaseApi::getCurrentUserID());
        }
 
-       /**
-        * Test the api_user() function with an unallowed user.
-        *
-        * @return void
-        */
-       public function testApiUserWithUnallowedUser()
-       {
-               // self::assertEquals(false, api_user());
-       }
+
 
        /**
         * Test the api_source() function.
index 93de318e6aa919e460c6887ff3db8ed985ee2738..a39055a91b84d22f08d847a24ff83016f4a5469b 100644 (file)
@@ -124,4 +124,16 @@ class UserTest extends FixtureTest
                self::assertEquals(0, $user['pid']);
                self::assertEmpty($user['name']);
        }
+
+       /**
+        * Test the api_user() function with an unallowed user.
+        *
+        * @return void
+        */
+       public function testApiUserWithUnallowedUser()
+       {
+               self::markTestIncomplete('Needs BasicAuth as dynamic method for overriding first');
+
+               // self::assertEquals(false, api_user());
+       }
 }