/**
  * @test
  * @group unit
  */
 public function it_updates_an_order()
 {
     $this->mockJsonResponses([[]]);
     $this->mockRequests();
     $order = new Order($this->client);
     $parameters = ['Amount' => 50];
     $orderCode = $order->update(175936509216, $parameters);
     $request = $this->getLastRequest();
     parse_str($request->getBody(), $body);
     $this->assertEquals('PATCH', $request->getMethod(), 'The request method should be PATCH.');
     $this->assertStringEndsWith('175936509216', $request->getUri()->getPath(), 'The order code should be in the URL.');
     $this->assertEquals($parameters, $body, 'The parameters should be passed in the request body.');
 }