getValidationMessage() публичный Метод

public getValidationMessage ( string $element, integer $position ) : string
$element string
$position integer
Результат string
 /**
  * @Then /^I should be notified that variant code must be unique within this product for the (\d)(?:st|nd|rd|th) variant$/
  */
 public function iShouldBeNotifiedThatVariantCodeMustBeUniqueWithinThisProductForYheVariant($position)
 {
     Assert::same($this->generatePage->getValidationMessage('code', $position - 1), 'This code must be unique within this product.');
 }
 /**
  * @Then /^I should be notified that code is required for the (\d)(?:st|nd|rd|th) variant$/
  */
 public function iShouldBeNotifiedThatCodeIsRequiredForVariant($position)
 {
     Assert::same($this->generatePage->getValidationMessage('code', $position), 'Please enter the code.');
 }