public function testGetCategoryList()
 {
     $tree = ['id' => 1, 'parent' => '#', 'text' => 'Master catalog', 'state' => ['opened' => true]];
     $this->categoryTreeHandler->expects($this->once())->method('createTree')->will($this->returnValue($tree));
     $result = $this->extension->getCategoryList();
     $this->assertEquals($tree, $result);
 }
 public function testGetCategoryListWithRootLabel()
 {
     $tree = [['id' => 1, 'parent' => '#', 'text' => '[trans]orob2b.catalog.frontend.category.master_category.label[/trans]', 'state' => ['opened' => true]]];
     $this->categoryTreeHandler->expects($this->once())->method('createTree')->will($this->returnValue($tree));
     $result = $this->extension->getCategoryList('orob2b.catalog.frontend.category.master_category.label');
     $this->assertEquals($tree, $result);
 }