示例#1
0
 public function testDeleteById()
 {
     // set a mock transport
     $mockTransport = $this->getMockHttpTransportInterface();
     // setup expected call and response
     $mockTransport->expects($this->once())->method('performPostRequest')->will($this->returnValue(Apache_Solr_HttpTransport_ResponseTest::get200Response()));
     $fixture = new Apache_Solr_Service();
     $fixture->setHttpTransport($mockTransport);
     $fixture->deleteById("does not exist");
 }
示例#2
0
文件: Solr.php 项目: emilymwang8/ibug
 public function deleteById($id)
 {
     $this->service->deleteById($id);
 }