Esempio n. 1
0
 function MeioUploadWebTest($label = false)
 {
     parent::CakeWebTestCase($label);
     Router::setRequestInfo(array(array(), array('base' => current(split("webroot", $_SERVER['PHP_SELF'])))));
     $this->db =& ConnectionManager::getDataSource('test');
     require_once App::pluginPath('meio_upload') . DS . 'tests' . DS . 'fixtures' . DS . 'meio_fixture.php';
     $this->fixture =& new MeioFixture($this->db);
     $this->fixture->drop($this->db);
 }