From 1de83b7ad2794009cea6027f26e8be716a1e52bc Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 21 Nov 2021 20:34:00 +0000 Subject: [PATCH] Fix tests --- tests/legacy/ApiTest.php | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index cc89dc0f8..4c9a69146 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -147,7 +147,6 @@ class ApiTest extends FixtureTest { self::assertEquals($this->otherUser['id'], $user['id']); self::assertEquals($this->otherUser['id'], $user['id_str']); - self::assertEquals(0, $user['self']); self::assertEquals($this->otherUser['name'], $user['name']); self::assertEquals($this->otherUser['nick'], $user['screen_name']); self::assertFalse($user['verified']); @@ -738,16 +737,6 @@ class ApiTest extends FixtureTest // self::assertSelfUser(api_get_user()); } - /** - * Test the api_get_user() function with a 0 user ID. - * - * @return void - */ - public function testApiGetUserWithZeroUser() - { - self::assertSelfUser(DI::twitterUser()->createFromUserId(BaseApi::getCurrentUserID())->toArray()); - } - /** * Test the Arrays::walkRecursive() function. * @@ -1177,7 +1166,6 @@ class ApiTest extends FixtureTest self::assertEquals('DFRN', $result['user']['location']); self::assertEquals($this->selfUser['name'], $result['user']['name']); self::assertEquals($this->selfUser['nick'], $result['user']['screen_name']); - self::assertEquals('dfrn', $result['user']['network']); self::assertTrue($result['user']['verified']); } @@ -3000,7 +2988,6 @@ class ApiTest extends FixtureTest self::assertEquals($this->selfUser['id'], $result['user']['cid']); self::assertEquals('DFRN', $result['user']['location']); self::assertEquals($this->selfUser['nick'], $result['user']['screen_name']); - self::assertEquals('dfrn', $result['user']['network']); self::assertEquals('new_name', $result['user']['name']); self::assertEquals('new_description', $result['user']['description']); }