/** * Test Attempt Bad Reservation * @covers \App\Services\ConciergeService::makeReservation * @test */ public function testAttemptBadReservation() { // Arrange $this->arrangeScenario(); $this->contact = factory(Contact::class)->create(); $this->business->contacts()->save($this->contact); $this->vacancy = factory(Vacancy::class)->make(); $this->vacancy->business()->associate($this->business); $this->vacancy->service()->associate($this->service); $this->business->vacancies()->save($this->vacancy); // Act $date = $this->makeDateTime($this->vacancy->date, $this->vacancy->business->pref('start_at'), $this->business->timezone, '+1 day'); $appointment = $this->concierge->makeReservation($this->user, $this->business, $this->contact, $this->service, $date); // Assert $this->assertFalse($appointment); }
/** * [authPage description] * @return [type] [description] */ public function authPage() { $service_page = $this->theme->service('auth'); return $this->renderPage($service_page); }