mark Timeline tests incomplete because of needed refactoring

This commit is contained in:
Philipp 2021-12-04 22:37:44 +01:00
parent cc7b2fae4e
commit 215979c2ac
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
2 changed files with 18 additions and 0 deletions

View file

@ -13,6 +13,8 @@ class HomeTest extends ApiTest
*/ */
public function testApiStatusesHomeTimeline() public function testApiStatusesHomeTimeline()
{ {
self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader');
/* /*
$_REQUEST['max_id'] = 10; $_REQUEST['max_id'] = 10;
$_REQUEST['exclude_replies'] = true; $_REQUEST['exclude_replies'] = true;
@ -32,6 +34,8 @@ class HomeTest extends ApiTest
*/ */
public function testApiStatusesHomeTimelineWithNegativePage() public function testApiStatusesHomeTimelineWithNegativePage()
{ {
self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader');
/* /*
$_REQUEST['page'] = -2; $_REQUEST['page'] = -2;
$result = api_statuses_home_timeline('json'); $result = api_statuses_home_timeline('json');
@ -49,6 +53,8 @@ class HomeTest extends ApiTest
*/ */
public function testApiStatusesHomeTimelineWithUnallowedUser() public function testApiStatusesHomeTimelineWithUnallowedUser()
{ {
self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader');
/* /*
$this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class); $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
BasicAuth::setCurrentUserID(); BasicAuth::setCurrentUserID();
@ -63,6 +69,8 @@ class HomeTest extends ApiTest
*/ */
public function testApiStatusesHomeTimelineWithRss() public function testApiStatusesHomeTimelineWithRss()
{ {
self::markTestIncomplete('Needs Home to not set header during call (like at BaseApi::setLinkHeader');
// $result = api_statuses_home_timeline('rss'); // $result = api_statuses_home_timeline('rss');
// self::assertXml($result, 'statuses'); // self::assertXml($result, 'statuses');
} }

View file

@ -13,6 +13,8 @@ class PublicTimelineTest extends ApiTest
*/ */
public function testApiStatusesPublicTimeline() public function testApiStatusesPublicTimeline()
{ {
self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader');
/* /*
$_REQUEST['max_id'] = 10; $_REQUEST['max_id'] = 10;
$_REQUEST['conversation_id'] = 1; $_REQUEST['conversation_id'] = 1;
@ -31,6 +33,8 @@ class PublicTimelineTest extends ApiTest
*/ */
public function testApiStatusesPublicTimelineWithExcludeReplies() public function testApiStatusesPublicTimelineWithExcludeReplies()
{ {
self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader');
/* /*
$_REQUEST['max_id'] = 10; $_REQUEST['max_id'] = 10;
$_REQUEST['exclude_replies'] = true; $_REQUEST['exclude_replies'] = true;
@ -49,6 +53,8 @@ class PublicTimelineTest extends ApiTest
*/ */
public function testApiStatusesPublicTimelineWithNegativePage() public function testApiStatusesPublicTimelineWithNegativePage()
{ {
self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader');
/* /*
$_REQUEST['page'] = -2; $_REQUEST['page'] = -2;
$result = api_statuses_public_timeline('json'); $result = api_statuses_public_timeline('json');
@ -66,6 +72,8 @@ class PublicTimelineTest extends ApiTest
*/ */
public function testApiStatusesPublicTimelineWithUnallowedUser() public function testApiStatusesPublicTimelineWithUnallowedUser()
{ {
self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader');
// $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class); // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
// BasicAuth::setCurrentUserID(); // BasicAuth::setCurrentUserID();
// api_statuses_public_timeline('json'); // api_statuses_public_timeline('json');
@ -78,6 +86,8 @@ class PublicTimelineTest extends ApiTest
*/ */
public function testApiStatusesPublicTimelineWithRss() public function testApiStatusesPublicTimelineWithRss()
{ {
self::markTestIncomplete('Needs PublicTimeline to not set header during call (like at BaseApi::setLinkHeader');
// $result = api_statuses_public_timeline('rss'); // $result = api_statuses_public_timeline('rss');
// self::assertXml($result, 'statuses'); // self::assertXml($result, 'statuses');
} }