public function setUp() { Session::$site = 'http://www.test.info/'; Session::$referrer = 'http://www.test.info/some/part/of/the/site'; $config = new Config('config/tests.config.php'); CoOrg::init($config, 'coorg/tests/mocks/app', 'coorg/tests/mocks/plugins'); CoOrgSmarty::$vars = array(); }
public function setUp() { CoOrgSmarty::$vars = array(); Session::$site = 'http://www.test.info/'; Session::$referrer = 'http://www.test.info/some/part/of/the/site'; $config = new Config('config/tests.config.php'); $config->set('aside/main', array('home/alpha')); CoOrg::init($config, 'coorg/tests/mocks/app', 'coorg/tests/mocks/plugins'); I18n::setLanguage(''); }
public function setUp() { parent::setUp(); I18n::setLanguage(''); Session::destroy(); if ($s = UserSession::get()) { $s->delete(); } Session::$site = 'http://www.test.info/'; Session::$referrer = 'http://www.test.info/some/part/of/the/site'; unlink(COORG_TEST_CONFIG); copy(COORG_TEST_CONFIG_CLEAN, COORG_TEST_CONFIG); $config = new Config(COORG_TEST_CONFIG); $config->set('site/title', 'The Site'); $config->set('defaultLanguage', ''); CoOrg::init($config, 'app', 'plugins'); CoOrgSmarty::clearAll(); Header::$redirect = '__none__'; }