public function FeatureContext::iAmViewingThePackage in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
@Given /^I am viewing the package "(?<package_name>[^"]*)"$/
File
- test/
features/ bootstrap/ FeatureContext.php, line 698
Class
- FeatureContext
- Features context.
Code
public function iAmViewingThePackage($package_name) {
$nid = $this
->findNodeByTypeAndTitle('rooms_package', $package_name);
$this
->getSession()
->visit($this
->locatePath('node/' . $nid));
}