hasProductOutOfStockValidationMessage() public method

public hasProductOutOfStockValidationMessage ( Sylius\Component\Product\Model\ProductInterface $product ) : boolean
$product Sylius\Component\Product\Model\ProductInterface
return boolean
Example #1
0
 /**
  * @Then /^I should not be notified that (this product) does not have sufficient stock$/
  */
 public function iShouldNotBeNotifiedThatThisProductDoesNotHaveSufficientStock(ProductInterface $product)
 {
     Assert::false($this->showPage->hasProductOutOfStockValidationMessage($product), sprintf('I should see validation message for %s product', $product->getName()));
 }