You are here

public function DatabaseMockStorage::add in Apigee Edge 8

File

tests/modules/apigee_mock_api_client/src/DatabaseMockStorage.php, line 91

Class

DatabaseMockStorage
A mock storage for functional tests.

Namespace

Drupal\apigee_mock_api_client

Code

public function add($result) : MockStorageInterface {
  $result = $result instanceof MessageInterface ? new SerializableMessageWrapper($result) : $result;
  $this->queue
    ->createItem($result);
  return $this;
}