mirror of
https://github.com/elyby/accounts.git
synced 2024-12-28 16:10:40 +05:30
29 lines
631 B
PHP
29 lines
631 B
PHP
<?php
|
|
namespace api\tests\functional\oauth;
|
|
|
|
use api\tests\_pages\OauthRoute;
|
|
use api\tests\FunctionalTester;
|
|
|
|
class DeleteClientCest {
|
|
|
|
/**
|
|
* @var OauthRoute
|
|
*/
|
|
private $route;
|
|
|
|
public function _before(FunctionalTester $I) {
|
|
$this->route = new OauthRoute($I);
|
|
}
|
|
|
|
public function testDelete(FunctionalTester $I) {
|
|
$I->amAuthenticated('TwoOauthClients');
|
|
$this->route->deleteClient('first-test-oauth-client');
|
|
$I->canSeeResponseCodeIs(200);
|
|
$I->canSeeResponseIsJson();
|
|
$I->canSeeResponseContainsJson([
|
|
'success' => true,
|
|
]);
|
|
}
|
|
|
|
}
|