mirror of
https://github.com/friendica/friendica
synced 2024-11-09 23:02:54 +00:00
mark remaining Mastodon tests incomplete because of needed refactoring
This commit is contained in:
parent
215979c2ac
commit
226f6038de
2 changed files with 20 additions and 0 deletions
|
@ -13,6 +13,8 @@ class ConversationsTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiConversationShow()
|
public function testApiConversationShow()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Conversations to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||||
// api_conversation_show('json');
|
// api_conversation_show('json');
|
||||||
}
|
}
|
||||||
|
@ -24,6 +26,8 @@ class ConversationsTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiConversationShowWithId()
|
public function testApiConversationShowWithId()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Conversations to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
DI::args()->setArgv(['', '', '', 1]);
|
DI::args()->setArgv(['', '', '', 1]);
|
||||||
$_REQUEST['max_id'] = 10;
|
$_REQUEST['max_id'] = 10;
|
||||||
|
@ -43,6 +47,8 @@ class ConversationsTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiConversationShowWithUnallowedUser()
|
public function testApiConversationShowWithUnallowedUser()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Conversations 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_conversation_show('json');
|
// api_conversation_show('json');
|
||||||
|
|
|
@ -13,6 +13,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearch()
|
public function testApiSearch()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$_REQUEST['q'] = 'reply';
|
$_REQUEST['q'] = 'reply';
|
||||||
$_REQUEST['max_id'] = 10;
|
$_REQUEST['max_id'] = 10;
|
||||||
|
@ -31,6 +33,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearchWithCount()
|
public function testApiSearchWithCount()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$_REQUEST['q'] = 'reply';
|
$_REQUEST['q'] = 'reply';
|
||||||
$_REQUEST['count'] = 20;
|
$_REQUEST['count'] = 20;
|
||||||
|
@ -49,6 +53,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearchWithRpp()
|
public function testApiSearchWithRpp()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$_REQUEST['q'] = 'reply';
|
$_REQUEST['q'] = 'reply';
|
||||||
$_REQUEST['rpp'] = 20;
|
$_REQUEST['rpp'] = 20;
|
||||||
|
@ -66,6 +72,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearchWithHashtag()
|
public function testApiSearchWithHashtag()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
/*
|
/*
|
||||||
$_REQUEST['q'] = '%23friendica';
|
$_REQUEST['q'] = '%23friendica';
|
||||||
$result = api_search('json');
|
$result = api_search('json');
|
||||||
|
@ -82,6 +90,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearchWithExcludeReplies()
|
public function testApiSearchWithExcludeReplies()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search 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;
|
||||||
|
@ -100,6 +110,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearchWithUnallowedUser()
|
public function testApiSearchWithUnallowedUser()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search 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_search('json');
|
// api_search('json');
|
||||||
|
@ -112,6 +124,8 @@ class SearchTest extends ApiTest
|
||||||
*/
|
*/
|
||||||
public function testApiSearchWithoutQuery()
|
public function testApiSearchWithoutQuery()
|
||||||
{
|
{
|
||||||
|
self::markTestIncomplete('Needs Search to not set header during call (like at BaseApi::setLinkHeader');
|
||||||
|
|
||||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||||
// api_search('json');
|
// api_search('json');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue