mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Обновлён Codeception до версии 2.1
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace tests\codeception\api;
|
||||
|
||||
use Codeception\Scenario;
|
||||
use common\models\OauthScope;
|
||||
use tests\codeception\api\_pages\OauthRoute;
|
||||
use tests\codeception\api\functional\_steps\OauthSteps;
|
||||
@@ -18,8 +17,7 @@ class OauthRefreshTokenCest {
|
||||
$this->route = new OauthRoute($I);
|
||||
}
|
||||
|
||||
public function testRefreshToken(FunctionalTester $I, Scenario $scenario) {
|
||||
$I = new OauthSteps($scenario);
|
||||
public function testRefreshToken(OauthSteps $I) {
|
||||
$refreshToken = $I->getRefreshToken();
|
||||
$this->route->issueToken($this->buildParams(
|
||||
$refreshToken,
|
||||
@@ -36,8 +34,7 @@ class OauthRefreshTokenCest {
|
||||
$I->canSeeResponseJsonMatchesJsonPath('$.expires_in');
|
||||
}
|
||||
|
||||
public function testRefreshTokenWithSameScopes(FunctionalTester $I, Scenario $scenario) {
|
||||
$I = new OauthSteps($scenario);
|
||||
public function testRefreshTokenWithSameScopes(OauthSteps $I) {
|
||||
$refreshToken = $I->getRefreshToken();
|
||||
$this->route->issueToken($this->buildParams(
|
||||
$refreshToken,
|
||||
@@ -55,8 +52,7 @@ class OauthRefreshTokenCest {
|
||||
$I->canSeeResponseJsonMatchesJsonPath('$.expires_in');
|
||||
}
|
||||
|
||||
public function testRefreshTokenWithNewScopes(FunctionalTester $I, Scenario $scenario) {
|
||||
$I = new OauthSteps($scenario);
|
||||
public function testRefreshTokenWithNewScopes(OauthSteps $I) {
|
||||
$refreshToken = $I->getRefreshToken();
|
||||
$this->route->issueToken($this->buildParams(
|
||||
$refreshToken,
|
||||
|
Reference in New Issue
Block a user