public function FeatureContext::assertEditNodeOfType in Booking and Availability Management Tools for Drupal 7
Same name and namespace in other branches
- 8 test/behat/features/bootstrap/FeatureContext.php \FeatureContext::assertEditNodeOfType()
Asserts that a given node type is editable.
File
- test/
behat/ features/ bootstrap/ FeatureContext.php, line 162
Class
- FeatureContext
- Features context.
Code
public function assertEditNodeOfType($type) {
$node = (object) array(
'type' => $type,
);
$saved = $this
->getDriver()
->createNode($node);
$this->nodes[] = $saved;
// Set internal browser on the node edit page.
$this
->getSession()
->visit($this
->locatePath('/node/' . $saved->nid . '/edit'));
}