/** * @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']); } }
/** * @return User */ public function add() { $this->test->byXPath("//a[@title='Create User']")->click(); $this->waitPageToLoad(); $this->waitForAjax(); $user = new User($this->test); return $user->init(true); }
public function entityNew() { $user = new User($this->test); return $user->init(true); }