Ejemplo n.º 1
0
 public function it_cannot_renew_a_disabled_faculty(Faculty $faculty, Rental $rental)
 {
     $faculty->getIsEnabled()->shouldBeCalled()->willReturn(false);
     $this->shouldThrow(PenalizedFacultyException::class)->duringRenewRental($rental);
 }
Ejemplo n.º 2
0
 public function it_cannot_rent_to_disabled_faculties(Faculty $faculty, Locker $locker, User $user)
 {
     $faculty->getIsEnabled()->willReturn(false);
     $this->shouldThrow(PenalizedFacultyException::class)->duringRentLocker($user, $locker);
 }