/** * Method to test createDbo(). * * @return void * * @covers Windwalker\Database\DatabaseFactory::createDbo */ public function testCreateDbo() { $options = $this->getOptions(); if ($options === false) { $this->markTestSkipped('No mysql test DSN'); } $this->assertInstanceOf('Windwalker\\Database\\Driver\\Mysql\\MysqlDriver', DatabaseFactory::createDbo('mysql', $options)); $this->resetDatabaseFactory(); }
/** * Method to test createDbo(). * * @return void * * @covers Windwalker\Database\DatabaseFactory::createDbo */ public function testCreateDbo() { $options = $this->getOptions(); $this->assertInstanceOf('Windwalker\\Database\\Driver\\Mysql\\MysqlDriver', DatabaseFactory::createDbo('mysql', $options)); $this->resetDatabaseFactory(); }