Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->products = new ArrayCollection();
     $this->translations = new ArrayCollection();
     $this->channels = new ArrayCollection();
 }
Example #2
0
 /**
  * @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();
 }