Author: Arkadiusz Krakowiak (arkadiusz.krakowiak@lakion.com)
Inheritance: extends Sylius\Behat\Page\SymfonyPageInterface
Ejemplo n.º 1
0
 /**
  * @param string $type
  * @param string $element
  * @param string $expectedMessage
  *
  * @throws \InvalidArgumentException
  */
 private function assertElementValidationMessage($type, $element, $expectedMessage)
 {
     $element = sprintf('%s_%s', $type, implode('_', explode(' ', $element)));
     Assert::true($this->addressPage->checkValidationMessageFor($element, $expectedMessage), sprintf('The %s should be required.', $element));
 }