Router::GET])) ->run(); $json = $this->toJson($response); self::assertEquals(48, $json->id); self::assertIsArray($json->emojis); self::assertIsArray($json->fields); } /** * Test the api_account_verify_credentials() function without an authenticated user. * * @return void */ public function testApiAccountVerifyCredentialsWithoutAuthenticatedUser() { self::markTestIncomplete('Needs dynamic BasicAuth first'); // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class); // BasicAuth::setCurrentUserID(); // $_SESSION['authenticated'] = false; // api_account_verify_credentials('json'); } }