hasAssociation() public method

public hasAssociation ( string $productAssociationName ) : boolean
$productAssociationName string
return boolean
Ejemplo n.º 1
0
 /**
  * @Then /^I should(?:| also) see the product association "([^"]+)" with (products "[^"]+" and "[^"]+")$/
  */
 public function iShouldSeeTheProductAssociationWithProducts($productAssociationName, array $products)
 {
     Assert::true($this->showPage->hasAssociation($productAssociationName), sprintf('There should be an association named "%s" but it does not.', $productAssociationName));
     foreach ($products as $product) {
         $this->assertIsProductIsInAssociation($product->getName(), $productAssociationName);
     }
 }