/**
  * Test that the helper method ebayenterprise_order/factory::getNewSearchProcessResponse()
  * when invoked it will instantiate ebayenterprise_order/search_process_response object
  * and passing to its constructor method an array with required key 'response', mapped to an instance of
  * type  IOrderSummaryResponse. Finally, the helper method ebayenterprise_order/factory::getNewSearchProcessResponse()
  * will return the instance of type ebayenterprise_order/search_process_response.
  */
 public function testGetNewSearchProcessResponse()
 {
     /** @var Mock_IOrderSummaryResponse */
     $response = $this->getMockBuilder(static::SUMMARY_RESPONSE_CLASS)->disableOriginalConstructor()->getMock();
     /** @var EbayEnterprise_Order_Model_Search_Process_Response */
     $searchProcessResponse = $this->getModelMock('ebayenterprise_order/search_process_response', [], false, [['response' => $response]]);
     $this->replaceByMock('model', 'ebayenterprise_order/search_process_response', $searchProcessResponse);
     $this->assertSame($searchProcessResponse, $this->_factory->getNewSearchProcessResponse($response));
 }
 /**
  * Process order summary payload response.
  *
  * @return EbayEnterprise_Order_Model_Search_Process_Response_ICollection
  * @throws EbayEnterprise_Order_Exception_Order_Detail_Notfound_Exception
  */
 protected function _processResponse()
 {
     if (is_null($this->_response)) {
         throw new EbayEnterprise_Order_Exception_Order_Detail_Notfound_Exception();
     }
     return $this->_factory->getNewSearchProcessResponse($this->_response)->process();
 }
 /**
  * Process order summary payload response.
  *
  * @return EbayEnterprise_Order_Model_Search_Process_Response_ICollection
  */
 protected function _processResponse()
 {
     return $this->_factory->getNewSearchProcessResponse($this->_response)->process();
 }