Exemplo n.º 1
0
 /**
  * @todo Make less dumb.
  *
  */
 public function setUp()
 {
     Company::config();
     Employee::config();
     $this->_connection = Connections::get('test');
     if (strpos(get_class($this->_connection), 'CouchDb')) {
         $this->_loadViews();
     }
     try {
         foreach (Company::all() as $company) {
             $company->delete();
         }
     } catch (Exception $e) {
     }
 }
Exemplo n.º 2
0
 public function setUp()
 {
     Company::config();
 }