/** * Test related method */ public function testGetFunctions() { $twigFunctions = $this->categoryExtension->getFunctions(); $this->assertFunction('children_response', 'childrenResponse', $twigFunctions); $this->assertFunction('children_tree_response', 'childrenTreeResponse', $twigFunctions); $this->assertFunction('list_categories_response', 'listCategoriesResponse', $twigFunctions); $this->assertFunction('list_trees_response', 'listTreesResponse', $twigFunctions); }