3 namespace Friendica\Test\src\Module\Api\Mastodon\Accounts;
5 use Friendica\Test\src\Module\Api\ApiTest;
7 class VerifyCredentialsTest extends ApiTest
10 * Test the api_account_verify_credentials() function.
14 public function testApiAccountVerifyCredentials()
16 // self::assertArrayHasKey('user', api_account_verify_credentials('json'));
20 * Test the api_account_verify_credentials() function without an authenticated user.
24 public function testApiAccountVerifyCredentialsWithoutAuthenticatedUser()
26 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
27 // BasicAuth::setCurrentUserID();
28 // $_SESSION['authenticated'] = false;
29 // api_account_verify_credentials('json');