You are here

protected function ALProfilesAPITest::assertAPIRequests in Acquia Lift Connector 7

Same name and namespace in other branches
  1. 7.2 acquia_lift_profiles/tests/acquia_lift_profiles_unit.test \ALProfilesAPITest::assertAPIRequests()

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

Parameters

$expected_requests:

3 calls to ALProfilesAPITest::assertAPIRequests()
ALProfilesAPITest::testDeleteEvent in acquia_lift_profiles/tests/acquia_lift_profiles_unit.test
Test ALProfilesAPI->deleteEvent()
ALProfilesAPITest::testGetSegements in acquia_lift_profiles/tests/acquia_lift_profiles_unit.test
ALProfilesAPITest::testSaveEvent in acquia_lift_profiles/tests/acquia_lift_profiles_unit.test
Test ALProfilesAPI->saveEvent()

File

acquia_lift_profiles/tests/acquia_lift_profiles_unit.test, line 387
Unit tests for Acquia Lift Profiles module.

Class

ALProfilesAPITest
@file Unit tests for Acquia Lift Profiles module.

Code

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