diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index a76a59f5cc..eda1c6fdbe 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -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. diff --git a/tests/src/Factory/Api/Twitter/UserTest.php b/tests/src/Factory/Api/Twitter/UserTest.php index 93de318e6a..a39055a91b 100644 --- a/tests/src/Factory/Api/Twitter/UserTest.php +++ b/tests/src/Factory/Api/Twitter/UserTest.php @@ -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()); + } }