/** * Tests the JDatabaseQuery::group method. * * @return void * * @since 11.3 */ public function testGroup() { $q = new JDatabaseQueryInspector($this->dbo); $this->assertThat($q->group('foo'), $this->identicalTo($q), 'Tests chaining.'); $this->assertThat(trim($q->group), $this->equalTo('GROUP BY foo'), 'Tests rendered value.'); // Add another column. $q->group('bar'); $this->assertThat(trim($q->group), $this->equalTo('GROUP BY foo,bar'), 'Tests rendered value after second use.'); }