public function productVariantShouldNotExist(ProductVariantInterface $productVariant) { $this->iWantToViewAllVariantsOfThisProduct($productVariant->getProduct()); Assert::false($this->indexPage->isSingleResourceOnPage(['name' => $productVariant->getName()]), sprintf('Product variant with code %s exists but should not.', $productVariant->getName())); }