/** * @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) { } }
public function setUp() { Company::config(); }