mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Fix legacy API
This commit is contained in:
parent
942001b04d
commit
d576e920d5
3 changed files with 8 additions and 68 deletions
|
@ -763,29 +763,6 @@ class ApiTest extends FixtureTest
|
|||
self::assertSelfUser(DI::twitterUser()->createFromUserId(BaseApi::getCurrentUserID())->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_item_get_user() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiItemGetUser()
|
||||
{
|
||||
$users = api_item_get_user($this->app, []);
|
||||
self::assertSelfUser($users[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_item_get_user() function with a different item parent.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiItemGetUserWithDifferentParent()
|
||||
{
|
||||
$users = api_item_get_user($this->app, ['thr-parent' => 'item_parent', 'uri' => 'item_uri']);
|
||||
self::assertSelfUser($users[0]);
|
||||
self::assertEquals($users[0], $users[1]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the Arrays::walkRecursive() function.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue