示例#1
0
 /**
  * Arrange Fixture.
  *
  * @return void
  */
 protected function arrangeFixture()
 {
     // Given there is...
     // a Business owned by Me (User)
     $this->owner = $this->createUser();
     $this->issuer = $this->createUser();
     $this->business = $this->createBusiness();
     $this->business->owners()->save($this->owner);
     // And the Business provides a Service
     $this->service = $this->makeService();
     $this->business->services()->save($this->service);
     // And the Service has Vacancies to be reserved
     $this->vacancy = $this->makeVacancy();
     $this->vacancy->service()->associate($this->service);
     $this->business->vacancies()->save($this->vacancy);
     // And a Contact that holds an Appointment for that Service
     $this->contact = $this->createContact();
 }