public function setUp() { Kwf_Test_SeparateDb::createSeparateTestDb(dirname(__FILE__) . '/bootstrap.sql'); Kwf_Cache::factory('Core', 'Memcached', array('lifetime' => null, 'automatic_cleaning_factor' => false, 'automatic_serialization' => true))->clean(); ini_set("session.gc_maxlifetime", 2); //two seconds }
protected function initTestDb($bootstrapFile) { Kwf_Test_SeparateDb::createSeparateTestDb($bootstrapFile); $dbName = Kwf_Test_SeparateDb::getDbName(); $this->createCookie('test_special_db=' . $dbName, 'path=/, max_age=60*5'); Kwf_Registry::set('db', Kwf_Test::getTestDb($dbName)); Kwf_Model_Abstract::clearInstances(); }
public function setUp() { parent::setUp(); Kwf_Test_SeparateDb::createSeparateTestDb(dirname(__FILE__) . '/../bootstrap.sql'); Kwf_Util_Check_Spam::setBackend(new Kwf_Model_Mail_SpamSet_TestSpamCheckBackend()); }
public function setUp() { parent::setUp(); $this->setTimeout(300000); Kwf_Test_SeparateDb::createSeparateTestDb(dirname(__FILE__) . '/bootstrap.sql'); }