예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 /**
  * 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();
 }