mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Удалена зависимость от yiisoft/yii2-codeception в пользу интегрированного в Codeception генератора REST адресов
Реорганизованы объекты Pages для Functional тестов Исправлены не переименованные тесты, оставшиеся после последнего рефакторинга
This commit is contained in:
@ -1,36 +1,26 @@
|
||||
<?php
|
||||
namespace tests\codeception\api\_pages;
|
||||
|
||||
use yii\codeception\BasePage;
|
||||
|
||||
/**
|
||||
* @property \tests\codeception\api\FunctionalTester $actor
|
||||
*/
|
||||
class AuthserverRoute extends BasePage {
|
||||
|
||||
public function authenticate($params) {
|
||||
$this->route = ['authserver/authentication/authenticate'];
|
||||
$this->actor->sendPOST($this->getUrl(), $params);
|
||||
$this->getActor()->sendPOST('/authserver/authentication/authenticate', $params);
|
||||
}
|
||||
|
||||
public function refresh($params) {
|
||||
$this->route = ['authserver/authentication/refresh'];
|
||||
$this->actor->sendPOST($this->getUrl(), $params);
|
||||
$this->getActor()->sendPOST('/authserver/authentication/refresh', $params);
|
||||
}
|
||||
|
||||
public function validate($params) {
|
||||
$this->route = ['authserver/authentication/validate'];
|
||||
$this->actor->sendPOST($this->getUrl(), $params);
|
||||
$this->getActor()->sendPOST('/authserver/authentication/validate', $params);
|
||||
}
|
||||
|
||||
public function invalidate($params) {
|
||||
$this->route = ['authserver/authentication/invalidate'];
|
||||
$this->actor->sendPOST($this->getUrl(), $params);
|
||||
$this->getActor()->sendPOST('/authserver/authentication/invalidate', $params);
|
||||
}
|
||||
|
||||
public function signout($params) {
|
||||
$this->route = ['authserver/authentication/signout'];
|
||||
$this->actor->sendPOST($this->getUrl(), $params);
|
||||
$this->getActor()->sendPOST('/authserver/authentication/signout', $params);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user