public function DatabaseMockStorage::requests in Apigee Edge 8
3 calls to DatabaseMockStorage::requests()
- DatabaseMockStorage::addRequest in tests/
modules/ apigee_mock_api_client/ src/ DatabaseMockStorage.php - DatabaseMockStorage::lastRequest in tests/
modules/ apigee_mock_api_client/ src/ DatabaseMockStorage.php - DatabaseMockStorage::totalRequests in tests/
modules/ apigee_mock_api_client/ src/ DatabaseMockStorage.php
File
- tests/
modules/ apigee_mock_api_client/ src/ DatabaseMockStorage.php, line 156
Class
- DatabaseMockStorage
- A mock storage for functional tests.
Namespace
Drupal\apigee_mock_api_clientCode
public function requests() : array {
if ($requests = $this->state
->get(static::STATE_REQUESTS_ID)) {
$requests = array_map(function ($wrapped_request) {
return $wrapped_request
->getMessage();
}, $requests);
}
return $requests ?? [];
}