]> git.mxchange.org Git - friendica.git/blob - tests/src/Module/Api/Mastodon/Accounts/VerifyCredentialsTest.php
Move all (inactive) API endpoint specific tests to new structure
[friendica.git] / tests / src / Module / Api / Mastodon / Accounts / VerifyCredentialsTest.php
1 <?php
2
3 namespace Friendica\Test\src\Module\Api\Mastodon\Accounts;
4
5 use Friendica\Test\src\Module\Api\ApiTest;
6
7 class VerifyCredentialsTest extends ApiTest
8 {
9         /**
10          * Test the api_account_verify_credentials() function.
11          *
12          * @return void
13          */
14         public function testApiAccountVerifyCredentials()
15         {
16                 // self::assertArrayHasKey('user', api_account_verify_credentials('json'));
17         }
18
19         /**
20          * Test the api_account_verify_credentials() function without an authenticated user.
21          *
22          * @return void
23          */
24         public function testApiAccountVerifyCredentialsWithoutAuthenticatedUser()
25         {
26                 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
27                 // BasicAuth::setCurrentUserID();
28                 // $_SESSION['authenticated'] = false;
29                 // api_account_verify_credentials('json');
30         }
31 }