From f0b97d8e13b4ed0a1def987ae4d41cfd1c4f7180 Mon Sep 17 00:00:00 2001 From: Philipp Date: Thu, 30 Dec 2021 20:51:21 +0100 Subject: [PATCH] Move API User tests --- tests/legacy/ApiTest.php | 10 +--------- tests/src/Factory/Api/Twitter/UserTest.php | 12 ++++++++++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index a76a59f5c..eda1c6fdb 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 93de318e6..a39055a91 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()); + } }