$page->
fillField('Title',
$label);
if ($publish) { $page->
findButton('Save'
)->
click();
} else { $page->
uncheckField('Published'
);
$page->
findButton('Save'
)->
click();
} $session->
getPage()->
hasContent("{
$label} has been created"
);
return $this->
getOneEntityByLabel('node',
$label);
} /**
* Determine if the content list has an entity's label.
*
* This assertion can be used to validate a particular entity exists in the
* current workspace.
*/
protected function isLabelInContentOverview($label) { $this->
drupalGet('/admin/content'
);
$session =
$this->
getSession();