2016-03-13 04:49:00 +05:30
|
|
|
<?php
|
|
|
|
namespace tests\codeception\api\_pages;
|
|
|
|
|
|
|
|
class SignupRoute extends BasePage {
|
|
|
|
|
|
|
|
public function register(array $registrationData) {
|
2017-10-01 05:54:23 +05:30
|
|
|
$this->getActor()->sendPOST('/signup', $registrationData);
|
2016-03-13 04:49:00 +05:30
|
|
|
}
|
|
|
|
|
2016-03-13 23:54:49 +05:30
|
|
|
public function sendRepeatMessage($email = '') {
|
2017-10-01 05:54:23 +05:30
|
|
|
$this->getActor()->sendPOST('/signup/repeat-message', ['email' => $email]);
|
2016-03-13 04:49:00 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
public function confirm($key = '') {
|
2017-10-01 05:54:23 +05:30
|
|
|
$this->getActor()->sendPOST('/signup/confirm', [
|
2016-03-13 04:49:00 +05:30
|
|
|
'key' => $key,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|