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