Пример #1
0
 /**
  * @Given /^I update the node "([^"]*)" field "([^"]*)" to "([^"]*)"$/
  */
 public function iUpdateTheNodeFieldTo($title, $field, $value)
 {
     $nid = FeatureHelp::GetNodeId($title);
     $purl = FeatureHelp::GetNodeVsitePurl($nid);
     $purl = !empty($purl) ? $purl . '/' : '';
     return array(new Step\When('I visit "' . $purl . 'node/' . $nid . '/edit"'), new Step\When('I fill in "' . $field . '" with "' . $value . '"'), new Step\When('I press "Save"'));
 }