mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Первичная реализация формы отправки нового письма с активацией аккаунта, чуть-чуть рефакторинга тестов
This commit is contained in:
28
tests/codeception/api/_pages/SignupRoute.php
Normal file
28
tests/codeception/api/_pages/SignupRoute.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?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);
|
||||
}
|
||||
|
||||
public function sendNewMessage($email = '') {
|
||||
$this->route = ['signup/new-message'];
|
||||
$this->actor->sendPOST($this->getUrl(), ['email' => $email]);
|
||||
}
|
||||
|
||||
public function confirm($key = '') {
|
||||
$this->route = ['signup/confirm'];
|
||||
$this->actor->sendPOST($this->getUrl(), [
|
||||
'key' => $key,
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user