Exemplo n.º 1
0
 /**
  * @Then /^I verify the alias of node "([^"]*)" is "([^"]*)"$/
  */
 public function iVerifyTheAliasOfNodeIs($title, $alias)
 {
     $nid = FeatureHelp::GetNodeId($title);
     $actual_alias = FeatureHelp::GetNodeAlias($nid);
     if ($actual_alias != $alias) {
         throw new Exception("The alias of the node '{$title}' should be '{$alias}', but is '{$actual_alias}' instead.");
     }
 }