public function assertEditNodeOfType($type)
    {
        $node = (object) array(
        'type' => $type,
        'title' => "Test $type",
        );
        $saved = $this->nodeCreate($node);

        // Set internal browser on the node edit page.
        $this->getSession()->visit($this->locatePath('/node/' . $saved->nid . '/edit'));

        // Test status.
        $this->assertSession()->statusCodeEquals('200');
    }
public function assertEditNodeOfType($type)
    {
        $node = (object) array(
        'type' => $type,
        'title' => "Test $type",
        );
        $saved = $this->nodeCreate($node);

        // Set internal browser on the node edit page.
        $this->getSession()->visit($this->locatePath('/node/' . $saved->nid . '/edit'));

        // Test status.
        $this->assertSession()->statusCodeEquals('200');
    }
public function assertEditNodeOfType ( $ type ) { $ node = ( object ) array ( 'type' => $ type , 'title' => "Test $type" , ) ; $ saved = $ this -> nodeCreate ( $ node ) ; // Set internal browser on the node edit page. $ this -> getSession ( ) -> visit ( $ this -> locatePath ( '/node/' . $ saved -> nid . '/edit' ) ) ; // Test status. $ this -> assertSession ( ) -> statusCodeEquals ( '200' ) ; }
Asserts that a given content type is editable.

@Then I should be able to edit a/an :type( content)
Asserts that a given content type is editable .