コード例 #1
0
 /**
  * Build a collection using the response data.
  *
  * @return EbayEnterprise_Order_Model_Search_Process_Response_ICollection
  */
 protected function _processResponse()
 {
     /** @var EbayEnterprise_Order_Model_Search_Process_Response_ICollection */
     $collection = $this->_factory->getNewSearchProcessResponseCollection();
     /** @var IOrderSummaryIterable */
     $summaries = $this->_response->getOrderSummaries();
     return $this->_buildResponseCollection($summaries, $collection);
 }
コード例 #2
0
 /**
  * Test that the helper method ebayenterprise_order/factory::getNewSearchProcessResponseCollection()
  * when invoked it will instantiate ebayenterprise_order/search_process_response_collection object
  * and return this instantiated object.
  */
 public function testGetNewSearchProcessResponseCollection()
 {
     /** @var EbayEnterprise_Order_Model_Search_Process_Response_ICollection */
     $collection = $this->getModelMock('ebayenterprise_order/search_process_response_collection');
     $this->replaceByMock('model', 'ebayenterprise_order/search_process_response_collection', $collection);
     $this->assertSame($collection, $this->_factory->getNewSearchProcessResponseCollection());
 }