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