Ejemplo n.º 1
0
 public function testGetFunctions()
 {
     $functions = $this->menuExtension->getFunctions();
     $this->assertArrayHasKey('oro_menu_render', $functions);
     $this->assertInstanceOf('Twig_Function_Method', $functions['oro_menu_render']);
     $this->assertAttributeEquals('render', 'method', $functions['oro_menu_render']);
     $this->assertArrayHasKey('oro_menu_get', $functions);
     $this->assertInstanceOf('Twig_Function_Method', $functions['oro_menu_get']);
     $this->assertAttributeEquals('getMenu', 'method', $functions['oro_menu_get']);
 }