Sylius\Behat\Page\Shop\Checkout\CompletePageInterface::hasProductOutOfStockValidationMessage PHP Метод

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

public hasProductOutOfStockValidationMessage ( Sylius\Component\Core\Model\ProductInterface $product ) : boolean
$product Sylius\Component\Core\Model\ProductInterface
Результат boolean
    public function hasProductOutOfStockValidationMessage(ProductInterface $product);

Usage 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->completePage->hasProductOutOfStockValidationMessage($product), sprintf('I should see validation message for %s product', $product->getName()));
 }