3 namespace Friendica\Test\src\Module\Api\Twitter\Statuses;
5 use Friendica\Test\src\Module\Api\ApiTest;
7 class DestroyTest extends ApiTest
10 * Test the api_statuses_destroy() function.
14 public function testApiStatusesDestroy()
16 // $this->expectException(\Friendica\Network\HTTPException\BadRequestException::class);
17 // api_statuses_destroy('json');
21 * Test the api_statuses_destroy() function without an authenticated user.
25 public function testApiStatusesDestroyWithoutAuthenticatedUser()
27 // $this->expectException(\Friendica\Network\HTTPException\UnauthorizedException::class);
28 // BasicAuth::setCurrentUserID();
29 // $_SESSION['authenticated'] = false;
30 // api_statuses_destroy('json');
34 * Test the api_statuses_destroy() function with an ID.
38 public function testApiStatusesDestroyWithId()
40 // DI::args()->setArgv(['', '', '', 1]);
41 // $result = api_statuses_destroy('json');
42 // self::assertStatus($result['status']);