You are here

public function FeatureContext::iWillBeAbleToMakeABookingForUnitFromTo in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7

@Then /^I will be able to make a booking for "(?P<unit_name>[^"]*)" unit from "(?P<start>[^"]*)" to "(?P<end>[^"]*)"$/

File

test/features/bootstrap/FeatureContext.php, line 664

Class

FeatureContext
Features context.

Code

public function iWillBeAbleToMakeABookingForUnitFromTo($unit_name, $start, $end) {
  if (!$this
    ->findUnitAvailability($unit_name, $start, $end)) {
    throw new RuntimeException('Unable to book unit ' . $unit_name);
  }
}