/** * @When /^I fill in user form:$/ */ public function iFillInUserForm(TableNode $userTable) { $user = new User($this, false); $user->init(true); foreach ($userTable->getHash() as $userHash) { $this->fillForm($user, $userHash['FIELD'], $userHash['VALUE']); } }
public function add() { $this->test->byXPath("//a[@title='Create user']")->click(); //due to bug BAP-965 sleep(1); $this->waitPageToLoad(); $this->waitForAjax(); $user = new User($this->test); return $user->init(true); }