public function TestSubContext::iAmViewingALandingPage in Panopoly 7
@Given I am viewing a landing page
File
- modules/
panopoly/ panopoly_test/ behat/ steps/ panopoly_test.behat.inc, line 747 - Provide Behat step-definitions for generic Panopoly tests.
Class
Code
public function iAmViewingALandingPage() {
$node = (object) array(
'type' => 'panopoly_test_landing_page',
'title' => $this
->getRandom()
->name(8),
);
$saved = $this
->nodeCreate($node);
// Set internal page on the new node.
$this
->getSession()
->visit($this
->locatePath('/node/' . $saved->nid));
}