2016-03-13 04:49:00 +05:30
|
|
|
<?php
|
2019-02-21 01:28:52 +05:30
|
|
|
namespace api\tests\_pages;
|
2016-03-13 04:49:00 +05:30
|
|
|
|
|
|
|
class SignupRoute extends BasePage {
|
|
|
|
|
2024-12-02 15:40:55 +05:30
|
|
|
public function register(array $registrationData): void {
|
2019-02-21 01:28:52 +05:30
|
|
|
$this->getActor()->sendPOST('/api/signup', $registrationData);
|
2016-03-13 04:49:00 +05:30
|
|
|
}
|
|
|
|
|
2024-12-02 15:40:55 +05:30
|
|
|
public function sendRepeatMessage($email = ''): void {
|
2019-02-21 01:28:52 +05:30
|
|
|
$this->getActor()->sendPOST('/api/signup/repeat-message', ['email' => $email]);
|
2016-03-13 04:49:00 +05:30
|
|
|
}
|
|
|
|
|
2024-12-02 15:40:55 +05:30
|
|
|
public function confirm($key = ''): void {
|
2019-02-21 01:28:52 +05:30
|
|
|
$this->getActor()->sendPOST('/api/signup/confirm', [
|
2016-03-13 04:49:00 +05:30
|
|
|
'key' => $key,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|