/** * Tests the JDatabaseQuery::values method. * * @return void * * @covers JDatabaseQuery::values * @since 11.3 */ public function testValues() { $this->assertThat( $this->_instance->values('1,2,3'), $this->identicalTo($this->_instance), 'Tests chaining.' ); $this->assertThat( trim($this->_instance->values), $this->equalTo('(1,2,3)'), 'Tests rendered value.' ); // Add another column. $this->_instance->values( array( '4,5,6', '7,8,9', ) ); $this->assertThat( trim($this->_instance->values), $this->equalTo('(1,2,3),(4,5,6),(7,8,9)'), 'Tests rendered value after second use and array input.' ); }