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

getPricesValidationMessage() public method

public getPricesValidationMessage ( string $position ) : string
$position string
return string
    public function getPricesValidationMessage($position);

Usage Example

 /**
  * @Then /^I should be notified that prices in all channels must be defined for the (\d)(?:st|nd|rd|th) variant$/
  */
 public function iShouldBeNotifiedThatPricesInAllChannelsMustBeDefinedForTheVariant($position)
 {
     Assert::same($this->generatePage->getPricesValidationMessage($position - 1), 'You must define price for every channel.');
 }