public function testRejectResponseArrayShouldBeEmpty()
 {
     $orderHandler = new OrderHandler($this->fakeClient());
     $this->assertEmpty($orderHandler->getRejectedResponses());
 }
Example #2
0
 /**
  * Gets all the details about the market for a specific item
  *
  * Based on `searchAllRegionsForOrders`, we then use the `createRequestsForMarketDetailsPool` to createdRequests
  * responses that then get used with this function to give you all the regions selling that item and there associated
  * details.
  *
  * @param OrderHandler $orderHandler
  * @param array of GuzzleHttp\Psr7\Request
  * @return array of decoded json
  */
 public function getOrderResponsesFromRegionSearch(OrderHandler $orderHandler, array $createdRequests)
 {
     $pool = $orderHandler->processMultipleRequests($createdRequests);
     $promise = $pool->promise();
     $promise->wait();
     return $orderHandler->getAcceptedResponsesJson();
 }