/** * @When /^I edit the term "([^"]*)"$/ */ public function iEditTheTerm($name) { $tid = FeatureHelp::GetTermId($name); $purl = FeatureHelp::GetTermVsitePurl($tid); $purl = !empty($purl) ? $purl . '/' : ''; return array(new Step\When('I visit "' . $purl . 'taxonomy/term/' . $tid . '/edit"')); }