public function __construct() { parent::__construct(); $this->products = new ArrayCollection(); $this->translations = new ArrayCollection(); $this->channels = new ArrayCollection(); }
/** * @param Category $category * * @throws \Exception */ public function clickCategoryFilterLink($category) { $node = $this->getCategoryTree()->find('css', sprintf('#node_%s a', $category->getId())); if (null === $node) { throw new \Exception(sprintf('Could not find category filter "%s".', $category->getId())); } $node->click(); }