Example #1
0
 /**
  * Setup before each test.
  */
 protected function setUp()
 {
     $action = new Action('indexAction');
     $this->controller = new HomeController();
     $this->controller->setDispatcher(new Dispatcher());
     $this->controller->addDefaultListeners();
     $this->controller->setAction($action);
 }
Example #2
0
 /**
  * Initialises for LE (language-enabled) Controller.
  *
  * This method hooks into the Controller::ON_LOAD_EXTRA_DATA_FILTER
  * hook to be able to extract language translations in the $e (extra)
  * variable.
  *
  * @param array $config configuration array
  */
 public function addDefaultListeners($config = NULL)
 {
     parent::addDefaultListeners($config);
     //        $this->addFilter( self::ON_LOAD_EXTRA_DATA_FILTER,
     //                          [ $this, 'loadLanguageCallback' ]
     //        );
 }