/** * Creating the test database */ public function setUp() { Fixtures::config(array('db' => array('adapter' => 'Connection', 'connection' => $this->_connection, 'fixtures' => $this->_fixtures))); Fixtures::create('db'); $db = $this->_db; if (!$db::enabled('schema')) { $gallery = Fixtures::get('db', 'galleries'); $images = Fixtures::get('db', 'images'); Galleries::schema($gallery->fields()); Images::schema($images->fields()); } }