mirror of
https://github.com/friendica/friendica
synced 2025-04-23 21:50:10 +00:00
Move all (inactive) API endpoint specific tests to new structure
This commit is contained in:
parent
5aad46c7fb
commit
6fc2eeaeaf
23 changed files with 1122 additions and 951 deletions
61
tests/src/Module/Api/Twitter/Statuses/ShowTest.php
Normal file
61
tests/src/Module/Api/Twitter/Statuses/ShowTest.php
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Module\Api\Twitter\Statuses;
|
||||
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
|
||||
class ShowTest extends ApiTest
|
||||
{
|
||||
/**
|
||||
* Test the api_statuses_show() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesShow()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
|
||||
// api_statuses_show('json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_show() function with an ID.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesShowWithId()
|
||||
{
|
||||
// DI::args()->setArgv(['', '', '', 1]);
|
||||
// $result = api_statuses_show('json');
|
||||
// self::assertStatus($result['status']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_show() function with the conversation parameter.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesShowWithConversation()
|
||||
{
|
||||
/*
|
||||
DI::args()->setArgv(['', '', '', 1]);
|
||||
$_REQUEST['conversation'] = 1;
|
||||
$result = api_statuses_show('json');
|
||||
self::assertNotEmpty($result['status']);
|
||||
foreach ($result['status'] as $status) {
|
||||
self::assertStatus($status);
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_show() function with an unallowed user.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesShowWithUnallowedUser()
|
||||
{
|
||||
// $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
|
||||
// BasicAuth::setCurrentUserID();
|
||||
// api_statuses_show('json');
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue