/** * @return \Illuminate\Http\JsonResponse */ public function index() { $reservations = $this->service->readAllByUser($this->getUser()); return $this->responseOk($reservations); }
/** * @test */ public function readReservations_no_reservation() { $user = User::find(1); $actual = $this->sut->readAllByUser($user); $this->assertSame(0, $actual->count()); }