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,26 +1,18 @@
|
||||
<?php
|
||||
namespace tests\codeception\api\_pages;
|
||||
|
||||
use yii\codeception\BasePage;
|
||||
|
||||
/**
|
||||
* @property \tests\codeception\api\FunctionalTester $actor
|
||||
*/
|
||||
class SignupRoute extends BasePage {
|
||||
|
||||
public function register(array $registrationData) {
|
||||
$this->route = ['signup/index'];
|
||||
$this->actor->sendPOST($this->getUrl(), $registrationData);
|
||||
$this->getActor()->sendPOST('/signup', $registrationData);
|
||||
}
|
||||
|
||||
public function sendRepeatMessage($email = '') {
|
||||
$this->route = ['signup/repeat-message'];
|
||||
$this->actor->sendPOST($this->getUrl(), ['email' => $email]);
|
||||
$this->getActor()->sendPOST('/signup/repeat-message', ['email' => $email]);
|
||||
}
|
||||
|
||||
public function confirm($key = '') {
|
||||
$this->route = ['signup/confirm'];
|
||||
$this->actor->sendPOST($this->getUrl(), [
|
||||
$this->getActor()->sendPOST('/signup/confirm', [
|
||||
'key' => $key,
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user