public function testAddCatalogToTopMenuItemsWithFlat() { $observer = $this->_preparationData(); $this->_category->expects($this->once())->method('getChildrenNodes')->will($this->returnValue([$this->_childrenCategory])); $this->_category->expects($this->once())->method('getUseFlatResource')->will($this->returnValue(true)); $this->_categoryFlatState->expects($this->once())->method('isFlatEnabled')->will($this->returnValue(true)); $this->_observer->execute($observer); }
public function testAddCatalogToTopMenuItems() { $observer = $this->_preparationData(); $this->_observer->execute($observer); }