You are here

protected function AcquiaLiftTest::assertAPIRequests in Acquia Lift Connector 7.2

Same name and namespace in other branches
  1. 7 tests/AcquiaLiftAPI.test \AcquiaLiftTest::assertAPIRequests()

Asserts that the expected requests were made to the http client.

Parameters

$expected_requests:

File

tests/AcquiaLiftAPI.test, line 614
Unit tests for Acquia Lift module.

Class

AcquiaLiftTest
@file Unit tests for Acquia Lift module.

Code

protected function assertAPIRequests($expected_requests) {
  $logged_requests = DummyAcquiaLiftHttpClient::getLoggedRequests();
  $this
    ->assertEqual($expected_requests, $logged_requests);
  DummyAcquiaLiftHttpClient::clearLoggedRequests();
}