/** * Method to test deleteAllRelatives(). * * @return void * * @covers Windwalker\Relation\Handler\AbstractRelationHandler::deleteAllRelatives */ public function testDeleteAllRelatives() { $db = new MockDatabaseDriver(); $this->instance->setDb($db); $this->instance->deleteAllRelatives(); $sql = <<<SQL DELETE FROM #__testflower_roses WHERE foo_id = 'Foo' AND bar_id = 'Bar' SQL; $this->assertStringDataEquals($sql, $db->lastQuery); }