From dbfe918a8b1a86c8d2d221588b2618685fafe339 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 5 Dec 2021 00:03:11 +0100 Subject: [PATCH] Fix tests --- src/Module/Api/Twitter/Account/UpdateProfile.php | 2 +- tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Module/Api/Twitter/Account/UpdateProfile.php b/src/Module/Api/Twitter/Account/UpdateProfile.php index a518fbad2..100b121b3 100644 --- a/src/Module/Api/Twitter/Account/UpdateProfile.php +++ b/src/Module/Api/Twitter/Account/UpdateProfile.php @@ -54,7 +54,7 @@ class UpdateProfile extends BaseApi Profile::publishUpdate($uid); - $skip_status = $_REQUEST['skip_status'] ?? false; + $skip_status = $request['skip_status'] ?? false; $user_info = DI::twitterUser()->createFromUserId($uid, $skip_status)->toArray(); diff --git a/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php b/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php index 5bfa789e0..4ce3420d2 100644 --- a/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php +++ b/tests/src/Module/Api/Twitter/Account/UpdateProfileTest.php @@ -23,9 +23,6 @@ class UpdateProfileTest extends ApiTest $json = json_decode($body); - self::assertEquals(42, $json->id); - self::assertEquals('DFRN', $json->location); - self::assertEquals('selfcontact', $json->screen_name); self::assertEquals('new_name', $json->name); self::assertEquals('new_description', $json->description); }