public function testBuildDeleteXmlIdAndQuerySpecialChars() { $command = new Solarium_Query_Update_Command_Delete(); $command->addId('special<char>id'); $command->addQuery('id:special<char>id'); $this->assertEquals('<delete><id>special<char>id</id><query>id:special<char>id</query></delete>', $this->_builder->buildDeleteXml($command)); }
/** * Convenience method for adding a delete query command * * If you need more control, like choosing a key for the command you need to * create you own command instance and use the add method. * * @param string $query * @return Solarium_Query_Update Provides fluent interface */ public function addDeleteQuery($query) { $delete = new Solarium_Query_Update_Command_Delete(); $delete->addQuery($query); return $this->add(null, $delete); }