public function hasItemWithProductAndQuantity($productName, $quantity);
/** * @Given I should have :quantity :productName products in the cart */ public function iShouldHaveProductsInTheCart($quantity, $productName) { Assert::true($this->completePage->hasItemWithProductAndQuantity($productName, $quantity), sprintf('There is no "%s" with quantity %s on order summary page, but it should.', $productName, $quantity)); }