Move last legacy API tests & adapt phpunit.xml

This commit is contained in:
Philipp 2022-01-22 21:24:03 +01:00
parent 732663ea6b
commit fbefb599dc
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
7 changed files with 173 additions and 304 deletions

View file

@ -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());
}
}