/** * Tests the \Joomla\Database\DatabaseQuery::insert method. * * @return void * * @covers \Joomla\Database\DatabaseQuery::insert * @since 1.0 */ public function testInsert() { $this->assertThat($this->instance->insert('#__foo'), $this->identicalTo($this->instance), 'Tests chaining.'); $this->assertThat(TestHelper::getValue($this->instance, 'type'), $this->equalTo('insert'), 'Tests the type property is set correctly.'); $this->assertThat(trim(TestHelper::getValue($this->instance, 'insert')), $this->equalTo('INSERT INTO #__foo'), 'Tests the delete element is set correctly.'); }