|
@@ 157-168 (lines=12) @@
|
| 154 |
|
* @param array $data |
| 155 |
|
* @return bool|mixed |
| 156 |
|
*/ |
| 157 |
|
protected function makeRegisterCall($data) |
| 158 |
|
{ |
| 159 |
|
$this->visitPage(); |
| 160 |
|
|
| 161 |
|
if(!$this->sendEmailVerificationAction()) return false; |
| 162 |
|
|
| 163 |
|
if(!$this->execPostRequest($data, UrlBuilder::RESOURCE_CREATE_REGISTER)) return false; |
| 164 |
|
|
| 165 |
|
if(!$this->sendPlainRegistrationActions()) return false; |
| 166 |
|
|
| 167 |
|
return $this->completeRegistration(); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
/** |
| 171 |
|
* @param array $data |
|
@@ 174-185 (lines=12) @@
|
| 171 |
|
* @param array $data |
| 172 |
|
* @return bool|mixed |
| 173 |
|
*/ |
| 174 |
|
protected function makeBusinessRegisterCall($data) |
| 175 |
|
{ |
| 176 |
|
$this->visitPage('business/create/'); |
| 177 |
|
|
| 178 |
|
if(!$this->sendBusinessRegistrationInitActions()) return false; |
| 179 |
|
|
| 180 |
|
if(!$this->execPostRequest($data, UrlBuilder::RESOURCE_CREATE_REGISTER)) return false; |
| 181 |
|
|
| 182 |
|
if(!$this->sendBusinessRegistrationFinishActions()) return false; |
| 183 |
|
|
| 184 |
|
return $this->completeRegistration(); |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
/** |
| 188 |
|
* @param string $username |