/** * Setup the DB once, not before every test. */ public static function setUpBeforeClass() { Database::registry()->addDriver('default', new MongoDriver(Config::get('db'))); // Remove singletons User::flushInstances(); Book::flushInstances(); Series::flushInstances(); Profile::flushInstances(); }