Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface::getValidationMessage PHP Method

getValidationMessage() public method

public getValidationMessage ( string $element, integer $position ) : string
$element string
$position integer
return string
    public function getValidationMessage($element, $position);

Usage Example

コード例 #1
0
 /**
  * @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.');
 }
All Usage Examples Of Sylius\Behat\Page\Admin\ProductVariant\GeneratePageInterface::getValidationMessage