mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Добавлен экшен для получения инфы о текущем аутентифицированном пользователе
This commit is contained in:
16
tests/codeception/api/_pages/UsersRoute.php
Normal file
16
tests/codeception/api/_pages/UsersRoute.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace tests\codeception\api\_pages;
|
||||
|
||||
use yii\codeception\BasePage;
|
||||
|
||||
/**
|
||||
* @property \tests\codeception\api\FunctionalTester $actor
|
||||
*/
|
||||
class UsersRoute extends BasePage {
|
||||
|
||||
public function current() {
|
||||
$this->route = ['users/current'];
|
||||
$this->actor->sendGET($this->getUrl());
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user