/** * Tests the JDatabase::getConnection method. * * @return void * * @since 11.4 */ public function testGetConnection() { TestReflection::setValue($this->db, 'connection', 'foo'); $this->assertThat( $this->db->getConnection(), $this->equalTo('foo') ); }