/** * Tests the JDatabaseQuery::insert method. * * @return void * * @since 11.3 */ public function testInsert() { $q = new JDatabaseQueryInspector($this->dbo); $this->assertThat($q->insert('#__foo'), $this->identicalTo($q), 'Tests chaining.'); $this->assertThat($q->type, $this->equalTo('insert'), 'Tests the type property is set correctly.'); $this->assertThat(trim($q->insert), $this->equalTo('INSERT INTO #__foo'), 'Tests the delete element is set correctly.'); }