2016-03-13 02:19:00 +03:00
|
|
|
<?php
|
2019-02-20 22:58:52 +03:00
|
|
|
namespace api\tests\_pages;
|
2016-03-13 02:19:00 +03:00
|
|
|
|
|
|
|
class SignupRoute extends BasePage {
|
|
|
|
|
|
|
|
public function register(array $registrationData) {
|
2019-02-20 22:58:52 +03:00
|
|
|
$this->getActor()->sendPOST('/api/signup', $registrationData);
|
2016-03-13 02:19:00 +03:00
|
|
|
}
|
|
|
|
|
2016-03-13 21:24:49 +03:00
|
|
|
public function sendRepeatMessage($email = '') {
|
2019-02-20 22:58:52 +03:00
|
|
|
$this->getActor()->sendPOST('/api/signup/repeat-message', ['email' => $email]);
|
2016-03-13 02:19:00 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
public function confirm($key = '') {
|
2019-02-20 22:58:52 +03:00
|
|
|
$this->getActor()->sendPOST('/api/signup/confirm', [
|
2016-03-13 02:19:00 +03:00
|
|
|
'key' => $key,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|