PopTest\Db\DbTest::testGetConnection PHP Method

testGetConnection() public method

public testGetConnection ( )
    public function testGetConnection()
    {
        $d = Db::factory('Sqlite', array('database' => __DIR__ . '/../tmp/test.sqlite'));
        $d->adapter()->query('SELECT * FROM users WHERE id = 1');
        $this->assertNotNull($d->adapter()->getConnection());
    }