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