mirror of
https://github.com/elyby/accounts.git
synced 2024-12-24 06:09:52 +05:30
29 lines
712 B
PHP
29 lines
712 B
PHP
|
<?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,
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
}
|