Exemplo 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->addressingPage->checkValidationMessageFor($element, $expectedMessage), sprintf('The %s should be required.', $element));
 }