mirror of
https://github.com/friendica/friendica
synced 2025-04-23 23:50:12 +00:00
Move last legacy API tests & adapt phpunit.xml
This commit is contained in:
parent
732663ea6b
commit
fbefb599dc
7 changed files with 173 additions and 304 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Module;
|
||||
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Test\src\Module\Api\ApiTest;
|
||||
|
||||
class BaseApiTest extends ApiTest
|
||||
|
@ -47,4 +48,14 @@ class BaseApiTest extends ApiTest
|
|||
);
|
||||
*/
|
||||
}
|
||||
|
||||
/**
|
||||
* Test the api_user() function.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testApiUser()
|
||||
{
|
||||
self::assertEquals(parent::SELF_USER['id'], BaseApi::getCurrentUserID());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue