1
1
Fork 0

mark Timeline tests incomplete because of needed refactoring

This commit is contained in:
Philipp Holzer 2021-12-04 22:37:44 +01:00
parent cc7b2fae4e
commit 215979c2ac
Signed by: nupplaPhil
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()
{
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');
}

View 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');
}