/** * @Then /^I should be notified that the password must be at least (\d+) characters long$/ */ public function iShouldBeNotifiedThatThePasswordMustBeAtLeastCharactersLong($amountOfCharacters) { Assert::same($this->createPage->getValidationMessage('password'), sprintf('Password must be at least %d characters long.', $amountOfCharacters)); }
/** * @Then I should be notified that email must be unique */ public function iShouldBeNotifiedThatEmailMustBeUnique() { Assert::same($this->createPage->getValidationMessage('email'), 'This email is already used.'); }