public function setUp() { parent::setUp(); if (!self::$dbConstructed) { self::$dbConstructed = true; $mv = new MetadataValue(); $mv->drop()->yesImSure(); $m = new Metadata(); $m->drop()->yesImSure(); $m->createTable(); $mv->createTable(); } }
public function setUp() { parent::setUp(); LudoDBRegistry::set('FILE_UPLOAD_PATH', '/tmp/'); $mv = new MetadataValue(); $mv->drop()->yesImSure(); $m = new Move(); $m->drop()->yesImSure(); $g = new Game(); $g->drop()->yesImSure(); $g->createTable(); $m->createTable(); $mv->createTable(); $db = new Database(1); if (!$db->getId()) { $db->setTitle('My database'); $db->commit(); } }