Provide an easy way to get the latest response from the HTTP Client Stub

Created on 14 November 2024, 11 days ago

Problem/Motivation

Now we have a function HttpClientFactoryStub::getMockedRequestsHashesContainer() that gives us the list of hashes of the latest HTTP responses.

But usually developers need only the last response, so to simplify the routine would be great to provide a function to get it using a single call:

  $lastResponse = TestHelpers::service('http_client_factory')->getLastResponse();
Feature request
Status

Active

Version

1.5

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024