public function FeatureContext::iWonTBeAbleToMakeABookingForUnitFromTo in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
@Then /^I won\'t be able to make a booking for "(?P<unit_name>[^"]*)" unit from "(?P<start>[^"]*)" to "(?P<end>[^"]*)"$/
File
- test/
features/ bootstrap/ FeatureContext.php, line 673
Class
- FeatureContext
- Features context.
Code
public function iWonTBeAbleToMakeABookingForUnitFromTo($unit_name, $start, $end) {
if ($this
->findUnitAvailability($unit_name, $start, $end)) {
throw new RuntimeException('Able to book unit ' . $unit_name);
}
}