Sylius\Behat\Page\Shop\Cart\SummaryPageInterface::hasProductOutOfStockValidationMessage PHP Method

hasProductOutOfStockValidationMessage() public method

public hasProductOutOfStockValidationMessage ( Sylius\Component\Core\Model\ProductInterface $product ) : boolean
$product Sylius\Component\Core\Model\ProductInterface
return boolean
    public function hasProductOutOfStockValidationMessage(ProductInterface $product);

Usage Example

コード例 #1
0
ファイル: CartContext.php プロジェクト: sylius/sylius
 /**
  * @Then /^I should not be notified that (this product) cannot be updated$/
  */
 public function iShouldNotBeNotifiedThatThisProductCannotBeUpdated(ProductInterface $product)
 {
     Assert::false($this->summaryPage->hasProductOutOfStockValidationMessage($product), sprintf('I should see validation message for %s product', $product->getName()));
 }