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