[ApiBundle] Add notified password step to ManagingCustomersContext

This commit is contained in:
Wojdylak 2023-10-25 08:23:41 +02:00
parent a84513bb19
commit d53ed1413e

View file

@ -422,6 +422,17 @@ final class ManagingCustomersContext implements Context
);
}
/**
* @Then /^I should be notified that the password must be at least (\d+) characters long$/
*/
public function iShouldBeNotifiedThatThePasswordMustBeAtLeastCharactersLong(string $amountOfCharacters): void
{
Assert::contains(
$this->responseChecker->getError($this->client->getLastResponse()),
sprintf('Password must be at least %d characters long.', $amountOfCharacters),
);
}
/**
* @Then I should not see the order with number :orderNumber in the list
*/