/** * @param string $productName * @param string $productAssociationName * * @throws \InvalidArgumentException */ private function assertIsProductIsInAssociation($productName, $productAssociationName) { Assert::true($this->showPage->hasProductInAssociation($productName, $productAssociationName), sprintf('There should be an associated product "%s" under association "%s" but it does not.', $productName, $productAssociationName)); }