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