/** * Test loadAssoc method. * * @return void * * @since 11.1 */ public function testLoadAssoc() { $query = $this->object->getQuery(true); $query->select('title'); $query->from('jos_dbtest'); $this->object->setQuery($query); $result = $this->object->loadAssoc(); $this->assertThat($result, $this->equalTo(array('title' => 'Testing')), __LINE__); }