Exemplo n.º 1
0
 /**
  * @return BillingAddress
  */
 protected function createBillingAddress()
 {
     $faker = \Faker\Factory::create('de_DE');
     $billingAddress = new BillingAddress();
     $billingAddress->setName($faker->name);
     $billingAddress->setCompanyName($faker->company);
     $billingAddress->setStreet($faker->streetAddress);
     $billingAddress->setZip($faker->postcode);
     $billingAddress->setCity($faker->city);
     $billingAddress->setCountry($faker->country);
     $billingAddress->setEmail($faker->email);
     return $billingAddress;
 }
Exemplo n.º 2
0
 /**
  * @param string $email
  */
 public function setEmail($email)
 {
     $this->payload->setEmail($email);
 }