public function setUp() { $this->_db->dropSchema('galleries'); $schema = new Schema($this->_schema); $this->_db->createSchema('galleries', $schema); Galleries::config(array('meta' => array('connection' => $this->_connection))); }