mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:10:13 +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
53
tests/src/Module/Api/Twitter/Friends/ListsTest.php
Normal file
53
tests/src/Module/Api/Twitter/Friends/ListsTest.php
Normal file
|
@ -0,0 +1,53 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Test\src\Module\Api\Twitter\Friends;
|
||||
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
|
||||
class ListsTest extends ApiTest
|
||||
{
|
||||
/**
|
||||
* Test the api_statuses_f() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesFWithFriends()
|
||||
{
|
||||
// $_GET['page'] = -1;
|
||||
// $result = api_statuses_f('friends');
|
||||
// self::assertArrayHasKey('user', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_f() function an undefined cursor GET variable.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesFWithUndefinedCursor()
|
||||
{
|
||||
// $_GET['cursor'] = 'undefined';
|
||||
// self::assertFalse(api_statuses_f('friends'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_friends() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesFriends()
|
||||
{
|
||||
// $result = api_statuses_friends('json');
|
||||
// self::assertArrayHasKey('user', $result);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_statuses_friends() function an undefined cursor GET variable.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiStatusesFriendsWithUndefinedCursor()
|
||||
{
|
||||
// $_GET['cursor'] = 'undefined';
|
||||
// self::assertFalse(api_statuses_friends('json'));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue