Ejemplo n.º 1
0
 public function testprocess_hooks()
 {
     //execute the method and test if it doesn't throws an exception
     $LogicHook = new LogicHook();
     $LogicHook->setBean(new Account());
     $hooks = $LogicHook->loadHooks('');
     try {
         $LogicHook->process_hooks($hooks, 'after_ui_footer', array());
         $this->assertTrue(true);
     } catch (Exception $e) {
         $this->fail();
     }
 }