]> git.mxchange.org Git - friendica.git/commitdiff
mark Timeline tests incomplete because of needed refactoring
authorPhilipp <admin@philipp.info>
Sat, 4 Dec 2021 21:37:44 +0000 (22:37 +0100)
committerPhilipp <admin@philipp.info>
Sun, 5 Dec 2021 19:33:59 +0000 (20:33 +0100)
tests/src/Module/Api/Mastodon/Timelines/HomeTest.php
tests/src/Module/Api/Mastodon/Timelines/PublicTimelineTest.php

index 74b32ba7985bebf61b4a817b7e78d5d7d18ccf3e..b25cee378398d04de06231b19da8c3bec69a9f5c 100644 (file)
@@ -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');
        }
index c475dc2d6a5d487aeb1ac3a01fb2a579f6ab46ea..a75c2f11167b3c7780a7f91e90b68c8155475cf7 100644 (file)
@@ -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');
        }