seregazhuk\PinterestBot\Api\Providers\Auth::register PHP Метод

register() публичный Метод

Register a new user.
public register ( string $email, string $password, string $name, string $country = 'GB', integer $age = 18 ) : boolean
$email string
$password string
$name string
$country string
$age integer
Результат boolean
    public function register($email, $password, $name, $country = 'GB', $age = 18)
    {
        $data = ["age" => $age, "email" => $email, "password" => $password, "country" => $country, "first_name" => $name, "gender" => "male", "container" => 'home_page'];
        return $this->makeRegisterCall($data);
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function it_returns_false_when_error_in_registration()
 {
     $this->setTokenFromCookiesExpectation();
     $this->setProperty('request', $this->request);
     $this->apiShouldReturnError(3)->assertFalse($this->provider->register('*****@*****.**', 'test', 'name'));
 }