/** * Tear Down * * @author Everton Yoshitani <*****@*****.**> * @since 1.0 * @return void */ public function tearDown() { parent::tearDown(); unset($this->DataTypeJuggling); unset($this->TestModel); ClassRegistry::flush(); }
/** * tearDown * * @return void */ public function tearDown() { parent::tearDown(); CakeSession::clear(); CakeSession::destroy(); ClassRegistry::flush(); }
function _reset() { unset($this->Controller); unset($this->Component); unset($this->Model); ClassRegistry::flush(); }
/** * endTest method * * @access public * @return void */ function endTest() { unset($this->PosPostsTagFixturet); unset($this->PostFixture); unset($this->Post); ClassRegistry::flush(); }
public function endTest() { $this->Session->destroy(); unset($this->Leaders); unset($this->Session); ClassRegistry::flush(); }
/** * tearDown * * @return void */ public function tearDown() { unset($this->Toolbar, $this->Controller); ClassRegistry::flush(); Router::reload(); TestFireCake::reset(); }
function tearDown() { $this->Data->flushFiles(); $this->Folder->delete(); ClassRegistry::flush(); Configure::write('Media', $this->_mediaConfig); }
public function tearDown() { parent::tearDown(); $this->Data->cleanUp(); ClassRegistry::flush(); Configure::write('Media', $this->oldConfig); }
public function endTest($method) { parent::endTest($method); unset($this->AdminCrud); unset($this->User); ClassRegistry::flush(); }
/** * Method executed after each test * * @return void */ public function tearDown() { parent::tearDown(); unset($this->Article); ClassRegistry::flush(); CakeSession::delete('Auth'); }
public function testConstruct_with_ds() { ClassRegistry::flush(); $this->Twim = ClassRegistry::init(array('class' => 'TestTwimAppModel', 'ds' => 'test_twitter2', 'testing' => false)); $this->assertInstanceOf('TestTwimAppModelTwimSource', $this->Twim->getDataSource()); $this->assertSame('testConsumerKey', $this->Twim->getDataSource()->config['oauth_consumer_key']); }
/** * tearDown method * * @return void */ public function tearDown() { Configure::delete('TestMailerConfig'); unset($this->Mailer); ClassRegistry::flush(); parent::tearDown(); }
public function endTest($method = null) { $this->Model = null; $this->Behavior = null; ClassRegistry::flush(); parent::endTest($method); }
/** * beforeFilter * * @return void */ public function beforeFilter() { parent::beforeFilter(); $this->Auth->deny('index'); $this->initTabs('frame_settings'); ClassRegistry::flush(); }
/** * tearDown method * * @return void */ public function tearDown() { unset($this->Task); ClassRegistry::flush(); App::build(); parent::tearDown(); }
/** * End a test * * @return void */ public function tearDown() { parent::tearDown(); unset($this->Article); ClassRegistry::flush(); DebugKitDebugger::clearTimers(); }
/** * Sets up a Dbo class instance for testing * */ public function tearDown() { parent::tearDown(); unset($this->model); ClassRegistry::flush(); Configure::write('debug', $this->_debug); }
function tearDown() { Configure::write('Media', $this->_config); $this->TestData->flushFiles(); $this->TmpFolder->delete(); ClassRegistry::flush(); }
/** * Tear Down * * @author Everton Yoshitani <*****@*****.**> * @since 1.0 * @return void */ public function tearDown() { parent::tearDown(); unset($this->ApiBehavior); unset($this->Thing); ClassRegistry::flush(); }
public function endTest() { $this->unloadSettings(); $this->Searches->Session->destroy(); unset($this->Searches); ClassRegistry::flush(); }
public function endTest() { unset($this->AuthorizeDotNet); unset($this->Controller); $this->unloadSettings(); ClassRegistry::flush(); }
/** * Method executed after each test * * @access public */ function endTest() { unset($this->Article); unset($this->User); unset($this->Tag); ClassRegistry::flush(); }
/** * endTest * * @return void */ public function tearDown() { parent::tearDown(); unset($this->Article); unset($this->Post); ClassRegistry::flush(); }
function endTest() { unset($this->Page); unset($this->Mark); unset($this->Book); ClassRegistry::flush(); }
static function configure() { if (empty($_COOKIE['selenium'])) { return; } $cookie = $_COOKIE['selenium']; App::import('Model', 'ConnectionManager', false); ClassRegistry::flush(); Configure::write('Cache.disable', true); $testDbAvailable = in_array('test', array_keys(ConnectionManager::enumConnectionObjects())); $_prefix = null; if ($testDbAvailable) { // Try for test DB restore_error_handler(); @($db =& ConnectionManager::getDataSource('test')); set_error_handler('simpleTestErrorHandler'); $testDbAvailable = $db->isConnected(); } // Try for default DB if (!$testDbAvailable) { $db =& ConnectionManager::getDataSource('default'); } $_prefix = $db->config['prefix']; $db->config['prefix'] = $cookie . '_'; ConnectionManager::create('test_suite', $db->config); $db->config['prefix'] = $_prefix; // Get db connection $db =& ConnectionManager::getDataSource('test_suite'); $db->cacheSources = false; ClassRegistry::config(array('ds' => 'test_suite')); }
/** * Tear Down * * @author Everton Yoshitani <*****@*****.**> * @since 0.1 * @return void */ public function tearDown() { parent::tearDown(); unset($this->OAuth2HashBehavior); unset($this->Model); ClassRegistry::flush(); }
/** * endTest clean up * * @access public * @return void */ public function endTest($method) { // defer logout to end of the test as some of the test need check flash // message. After logging out, message is destoryed. $this->controller->Auth->logout(); unset($this->controller); ClassRegistry::flush(); }
public function endTest() { $this->unloadSettings(); unset($this->Notifier); unset($this->Notification); unset($this->Controller); ClassRegistry::flush(); }
/** * tearDown method * * @return void */ public function tearDown() { unset($this->Metable); unset($this->Article); unset($this->Meta); ClassRegistry::flush(); parent::tearDown(); }
function endTest() { Configure::write('App.encoding', $this->_appEncoding); Configure::write('Asset', $this->_asset); Configure::write('debug', $this->_debug); ClassRegistry::flush(); unset($this->Layout); }