/**
  * Tear Down
  * 
  * @author	Everton Yoshitani <*****@*****.**>
  * @since	1.0
  * @return	void 
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->DataTypeJuggling);
     unset($this->TestModel);
     ClassRegistry::flush();
 }
示例#2
0
 /**
  * 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();
 }
示例#7
0
 function tearDown()
 {
     $this->Data->flushFiles();
     $this->Folder->delete();
     ClassRegistry::flush();
     Configure::write('Media', $this->_mediaConfig);
 }
示例#8
0
 public function tearDown()
 {
     parent::tearDown();
     $this->Data->cleanUp();
     ClassRegistry::flush();
     Configure::write('Media', $this->oldConfig);
 }
示例#9
0
 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');
 }
示例#11
0
 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']);
 }
示例#12
0
 /**
  * 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();
 }
示例#15
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Task);
     ClassRegistry::flush();
     App::build();
     parent::tearDown();
 }
示例#16
0
 /**
  * End a test
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Article);
     ClassRegistry::flush();
     DebugKitDebugger::clearTimers();
 }
示例#17
0
 /**
  * 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();
 }
示例#20
0
 public function endTest()
 {
     $this->unloadSettings();
     $this->Searches->Session->destroy();
     unset($this->Searches);
     ClassRegistry::flush();
 }
示例#21
0
 public function endTest()
 {
     unset($this->AuthorizeDotNet);
     unset($this->Controller);
     $this->unloadSettings();
     ClassRegistry::flush();
 }
示例#22
0
 /**
  * Method executed after each test
  *
  * @access public
  */
 function endTest()
 {
     unset($this->Article);
     unset($this->User);
     unset($this->Tag);
     ClassRegistry::flush();
 }
示例#23
0
 /**
  * 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();
 }
示例#25
0
 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();
 }
示例#28
0
 public function endTest()
 {
     $this->unloadSettings();
     unset($this->Notifier);
     unset($this->Notification);
     unset($this->Controller);
     ClassRegistry::flush();
 }
示例#29
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     unset($this->Metable);
     unset($this->Article);
     unset($this->Meta);
     ClassRegistry::flush();
     parent::tearDown();
 }
示例#30
0
 function endTest()
 {
     Configure::write('App.encoding', $this->_appEncoding);
     Configure::write('Asset', $this->_asset);
     Configure::write('debug', $this->_debug);
     ClassRegistry::flush();
     unset($this->Layout);
 }