Copyright 2009-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Gunnar Wrobel (wrobel@pardus.de)
Inheritance: extends Horde_Kolab_FreeBusy_Factory_Base
Ejemplo n.º 1
0
 public function testNotFound()
 {
     $injector = $this->getInjector();
     $injector->setInstance('Horde_Kolab_FreeBusy_Configuration', array('request_config' => array('prefix' => 'DOES_NOT_EXIST_')));
     $injector->setInstance('Horde_Kolab_FreeBusy_Controller_MatchDict', $this->getTestMatchDict());
     $factory = new Horde_Kolab_FreeBusy_Freebusy_Factory_Base($injector);
     $this->assertEquals('Horde_Kolab_FreeBusy_Controller_NotFound', $factory->createRequestConfiguration()->getControllerName());
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * @param Horde_Injector $injector The injector providing required dependencies.
  */
 public function __construct(Horde_Injector $injector)
 {
     $injector->bindImplementation('Horde_Kolab_FreeBusy_UserDb', 'Horde_Kolab_FreeBusy_UserDb_Kolab');
     parent::__construct($injector);
 }