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, ]); } }