From 215979c2acf801a3e4ca8ad8d53ee3f04bc81474 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 4 Dec 2021 22:37:44 +0100 Subject: [PATCH] mark Timeline tests incomplete because of needed refactoring --- tests/src/Module/Api/Mastodon/Timelines/HomeTest.php | 8 ++++++++ .../Api/Mastodon/Timelines/PublicTimelineTest.php | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php b/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php index 74b32ba79..b25cee378 100644 --- a/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php +++ b/tests/src/Module/Api/Mastodon/Timelines/HomeTest.php @@ -13,6 +13,8 @@ class HomeTest extends ApiTest */ public function testApiStatusesHomeTimeline() { + self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader'); + /* $_REQUEST['max_id'] = 10; $_REQUEST['exclude_replies'] = true; @@ -32,6 +34,8 @@ class HomeTest extends ApiTest */ public function testApiStatusesHomeTimelineWithNegativePage() { + self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader'); + /* $_REQUEST['page'] = -2; $result = api_statuses_home_timeline('json'); @@ -49,6 +53,8 @@ class HomeTest extends ApiTest */ public function testApiStatusesHomeTimelineWithUnallowedUser() { + self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader'); + /* $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class); BasicAuth::setCurrentUserID(); @@ -63,6 +69,8 @@ class HomeTest extends ApiTest */ public function testApiStatusesHomeTimelineWithRss() { + self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader'); + // $result = api_statuses_home_timeline('rss'); // self::assertXml($result, 'statuses'); } diff --git a/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php b/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php index c475dc2d6..a75c2f111 100644 --- a/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php +++ b/tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php @@ -13,6 +13,8 @@ class PublicTimelineTest extends ApiTest */ public function testApiStatusesPublicTimeline() { + self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader'); + /* $_REQUEST['max_id'] = 10; $_REQUEST['conversation_id'] = 1; @@ -31,6 +33,8 @@ class PublicTimelineTest extends ApiTest */ public function testApiStatusesPublicTimelineWithExcludeReplies() { + self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader'); + /* $_REQUEST['max_id'] = 10; $_REQUEST['exclude_replies'] = true; @@ -49,6 +53,8 @@ class PublicTimelineTest extends ApiTest */ public function testApiStatusesPublicTimelineWithNegativePage() { + self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader'); + /* $_REQUEST['page'] = -2; $result = api_statuses_public_timeline('json'); @@ -66,6 +72,8 @@ class PublicTimelineTest extends ApiTest */ public function testApiStatusesPublicTimelineWithUnallowedUser() { + self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader'); + // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class); // BasicAuth::setCurrentUserID(); // api_statuses_public_timeline('json'); @@ -78,6 +86,8 @@ class PublicTimelineTest extends ApiTest */ public function testApiStatusesPublicTimelineWithRss() { + self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader'); + // $result = api_statuses_public_timeline('rss'); // self::assertXml($result, 'statuses'); }