mirror of
https://github.com/elyby/accounts.git
synced 2024-12-27 07:30:18 +05:30
Контроллер Users переименован в Accounts
This commit is contained in:
parent
d9987a3185
commit
179d610eef
@ -6,7 +6,7 @@ use Yii;
|
|||||||
use yii\filters\AccessControl;
|
use yii\filters\AccessControl;
|
||||||
use yii\helpers\ArrayHelper;
|
use yii\helpers\ArrayHelper;
|
||||||
|
|
||||||
class UsersController extends Controller {
|
class AccountsController extends Controller {
|
||||||
|
|
||||||
public function behaviors() {
|
public function behaviors() {
|
||||||
return ArrayHelper::merge(parent::behaviors(), [
|
return ArrayHelper::merge(parent::behaviors(), [
|
@ -6,7 +6,7 @@ use yii\codeception\BasePage;
|
|||||||
/**
|
/**
|
||||||
* @property \tests\codeception\api\FunctionalTester $actor
|
* @property \tests\codeception\api\FunctionalTester $actor
|
||||||
*/
|
*/
|
||||||
class UsersRoute extends BasePage {
|
class AccountsRoute extends BasePage {
|
||||||
|
|
||||||
public function current() {
|
public function current() {
|
||||||
$this->route = ['users/current'];
|
$this->route = ['users/current'];
|
@ -3,19 +3,19 @@ namespace tests\codeception\api\functional;
|
|||||||
|
|
||||||
use Codeception\Scenario;
|
use Codeception\Scenario;
|
||||||
use Codeception\Specify;
|
use Codeception\Specify;
|
||||||
use tests\codeception\api\_pages\UsersRoute;
|
use tests\codeception\api\_pages\AccountsRoute;
|
||||||
use tests\codeception\api\functional\_steps\AccountSteps;
|
use tests\codeception\api\functional\_steps\AccountSteps;
|
||||||
use tests\codeception\api\FunctionalTester;
|
use tests\codeception\api\FunctionalTester;
|
||||||
|
|
||||||
class UsersCest {
|
class AccountsCurrentCest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var UsersRoute
|
* @var AccountsRoute
|
||||||
*/
|
*/
|
||||||
private $route;
|
private $route;
|
||||||
|
|
||||||
public function _before(FunctionalTester $I) {
|
public function _before(FunctionalTester $I) {
|
||||||
$this->route = new UsersRoute($I);
|
$this->route = new AccountsRoute($I);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCurrent(FunctionalTester $I, Scenario $scenario) {
|
public function testCurrent(FunctionalTester $I, Scenario $scenario) {
|
Loading…
Reference in New Issue
Block a user