You are here

protected function ALProfilesAPITest::assertLogs 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::assertLogs()

Asserts that the expected messages were logged to the logger.

Parameters

$expected_logs:

3 calls to ALProfilesAPITest::assertLogs()
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 398
Unit tests for Acquia Lift Profiles module.

Class

ALProfilesAPITest
@file Unit tests for Acquia Lift Profiles module.

Code

protected function assertLogs($expected_logs) {
  $logs = $this->logger
    ->getLogs();
  $this
    ->assertEqual($expected_logs, $logs);
  $this->logger
    ->clearLogs();
}