You are here

protected function AcquiaLiftTest::assertAPIRequests in Acquia Lift Connector 7

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

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

Parameters

$expected_requests:

29 calls to AcquiaLiftTest::assertAPIRequests()
AcquiaLiftTest::assertConfidenceReportAPI in tests/AcquiaLiftAPI.test
Helper function to call the confidence report endpoint and verify the API request.
AcquiaLiftTest::testDeleteChoice in tests/AcquiaLiftAPI.test
Test AcquiaLiftAPI->deleteChoice()
AcquiaLiftTest::testDeleteDecision in tests/AcquiaLiftAPI.test
Test AcquiaLiftAPI->deleteDecision()
AcquiaLiftTest::testDeleteGoal in tests/AcquiaLiftAPI.test
Test AcquiaLiftAPI->deleteGoal()
AcquiaLiftTest::testDeletePoint in tests/AcquiaLiftAPI.test
Test AcquiaLiftAPI->deletePoint()

... See full list

File

tests/AcquiaLiftAPI.test, line 2060
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();
}