public function createNode($type, $title)
    {
        // @todo make this easily extensible.
        $node = (object) array(
        'title' => $title,
        'type' => $type,
        );
        $saved = $this->nodeCreate($node);
        // Set internal page on the new node.
        $this->getSession()->visit($this->locatePath('/node/' . $saved->nid));
    }
public function createNode($type, $title)
    {
        // @todo make this easily extensible.
        $node = (object) array(
        'title' => $title,
        'type' => $type,
        );
        $saved = $this->nodeCreate($node);
        // Set internal page on the new node.
        $this->getSession()->visit($this->locatePath('/node/' . $saved->nid));
    }
public function createNode ( $ type , $ title ) { // @todo make this easily extensible. $ node = ( object ) array ( 'title' => $ title , 'type' => $ type , ) ; $ saved = $ this -> nodeCreate ( $ node ) ; // Set internal page on the new node. $ this -> getSession ( ) -> visit ( $ this -> locatePath ( '/node/' . $ saved -> nid ) ) ; }
Creates content of the given type.

@Given I am viewing a/an :type (content )with the title :title
@Given a/an :type (content )with the title :title
Creates content of the given type .