You are here

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

@Given /^options for "([^"]*)" unit:$/

File

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

Class

FeatureContext
Features context.

Code

public function optionsForUnit($unit_name, TableNode $table) {
  $unit_id = $this
    ->findBookableUnitByName($unit_name);
  $wrapper = entity_metadata_wrapper('rooms_unit', $unit_id);
  $this
    ->addOptionsToEntity($table, $wrapper);
}