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'; }
public function setUp() { $error = self::$setup->getError(); if (!empty($error)) { $this->markTestSkipped($error); } }
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'; }
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(); }
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'; }
protected static function createTestVFS(Horde_Test_Setup $setup) { $setup->getInjector()->setInstance('Ansel_Vfs', new Horde_Vfs_File(array('vfsroot' => __DIR__ . '/fixtures/vfs'))); $setup->getInjector()->setInstance('Horde_Core_Factory_Vfs', new Horde_Test_Stub_Factory($setup->getInjector()->getInstance('Ansel_Vfs'))); }
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')); }