mirror of
https://github.com/elyby/accounts.git
synced 2024-10-31 07:53:02 +05:30
29 lines
656 B
PHP
29 lines
656 B
PHP
<?php
|
|
namespace tests\codeception\api\oauth;
|
|
|
|
use tests\codeception\api\_pages\OauthRoute;
|
|
use tests\codeception\api\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,
|
|
]);
|
|
}
|
|
|
|
}
|