Пример #1
0
 protected static function createKolabShares(Horde_Test_Setup $setup)
 {
     $setup->setup(array('Horde_Kolab_Storage' => array('factory' => 'KolabStorage', 'params' => array('imapuser' => 'test')), 'Horde_Share_Base' => array('factory' => 'Share', 'method' => 'Kolab')));
     $setup->makeGlobal(array('nag_shares' => 'Horde_Share_Base'));
     $GLOBALS['conf']['storage']['driver'] = 'kolab';
     $GLOBALS['conf']['tasklists']['driver'] = 'kolab';
 }
Пример #2
0
 protected static function createKolabShares(Horde_Test_Setup $setup)
 {
     $setup->setup(array('Horde_Kolab_Storage' => array('factory' => 'KolabStorage', 'params' => array('imapuser' => 'test')), 'Kronolith_Shares' => array('factory' => 'Share', 'method' => 'Kolab')));
     $GLOBALS['injector']->setInstance('Horde_Core_Factory_Share', new Kronolith_Stub_ShareFactory($setup->getInjector()->getInstance('Kronolith_Shares')));
     $GLOBALS['conf']['storage']['driver'] = 'kolab';
     $GLOBALS['conf']['calendars']['driver'] = 'kolab';
 }
Пример #3
0
 protected static function createKolabShares(Horde_Test_Setup $setup)
 {
     $setup->setup(array('Horde_Kolab_Storage' => array('factory' => 'KolabStorage', 'params' => array('imapuser' => 'test')), 'Turba_Shares' => array('factory' => 'Share', 'method' => 'Kolab')));
     $setup->getInjector()->setInstance('Horde_Core_Factory_Share', new Horde_Test_Stub_Factory($setup->getInjector()->getInstance('Turba_Shares')));
     $GLOBALS['cfgSources']['test']['type'] = 'Kolab';
     $GLOBALS['cfgSources']['test']['title'] = 'Kolab';
     $GLOBALS['cfgSources']['test']['map'] = self::_getKolabMap();
 }
Пример #4
0
 protected static function createKolabShares(Horde_Test_Setup $setup)
 {
     $setup->setup(array('Horde_Kolab_Storage' => array('factory' => 'KolabStorage', 'params' => array('imapuser' => 'test')), 'Horde_Share_Base' => array('factory' => 'Share', 'method' => 'Kolab')));
     $setup->makeGlobal(array('mnemo_shares' => 'Horde_Share_Base'));
     $setup->getInjector()->setInstance('Horde_Core_Factory_Share', new Horde_Test_Stub_Factory($setup->getInjector()->getInstance('Horde_Share_Base')));
     $GLOBALS['conf']['storage']['driver'] = 'kolab';
     $GLOBALS['conf']['notepads']['driver'] = 'kolab';
 }
Пример #5
0
 protected static function createBasicAnselSetup(Horde_Test_Setup $setup)
 {
     $setup->setup(array('_PARAMS' => array('user' => '*****@*****.**', 'app' => 'ansel'), 'Horde_Prefs' => 'Prefs', 'Horde_Registry' => 'Registry'));
     $setup->makeGlobal(array('prefs' => 'Horde_Prefs', 'registry' => 'Horde_Registry', 'injector' => 'Horde_Injector'));
     // TODO: need separate test bundles
     $GLOBALS['conf']['image']['driver'] = 'Gd';
     $GLOBALS['conf']['image']['type'] = 'jpg';
     $GLOBALS['conf']['exif']['driver'] = 'Bundled';
 }
Пример #6
0
 protected static function createBasicPasswdSetup(Horde_Test_Setup $setup)
 {
     $setup->setup(array('_PARAMS' => array('user' => '*****@*****.**', 'app' => 'passwd'), 'Horde_Registry' => 'Registry'));
     $setup->makeGlobal(array('registry' => 'Horde_Registry'));
 }