mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace api\tests\functional\dev\applications;
|
|
|
|
use api\tests\FunctionalTester;
|
|
|
|
final class DeleteClientCest {
|
|
|
|
public function testDelete(FunctionalTester $I): void {
|
|
$I->amAuthenticated('TwoOauthClients');
|
|
$I->sendDELETE('/api/v1/oauth2/first-test-oauth-client');
|
|
$I->canSeeResponseCodeIs(200);
|
|
$I->canSeeResponseIsJson();
|
|
$I->canSeeResponseContainsJson([
|
|
'success' => true,
|
|
]);
|
|
}
|
|
|
|
}
|