public function DatabaseMockStorage::addRequest in Apigee Edge 8
File
- tests/
modules/ apigee_mock_api_client/ src/ DatabaseMockStorage.php, line 134
Class
- DatabaseMockStorage
- A mock storage for functional tests.
Namespace
Drupal\apigee_mock_api_clientCode
public function addRequest(RequestInterface $request) : MockStorageInterface {
$requests = $this
->requests();
$requests[] = $request;
$this->state
->set(static::STATE_REQUESTS_ID, array_map(function ($item) {
return new SerializableMessageWrapper($item);
}, $requests));
return $this;
}