Пример #1
0
 /**
  * @Then /^I verify the alias of term "([^"]*)" is "([^"]*)"$/
  */
 public function iVerifyTheAliasOfTermIs($name, $alias)
 {
     $tid = FeatureHelp::GetTermId($name);
     $actual_alias = FeatureHelp::GetTermAlias($tid);
     if ($actual_alias != $alias) {
         throw new Exception("The alias of the term '{$name}' should be '{$alias}', but is '{$actual_alias}' instead.");
     }
 }