You are here

protected function AcquiaLiftWebTestBase::assertQueueItems in Acquia Lift Connector 7

Asserts that the expected items are in the queue.

Parameters

$expected_items: An array of queued items.

10 calls to AcquiaLiftWebTestBase::assertQueueItems()
AcquiaLiftWebTestAgentAdmin::testDeleteAgentGoals in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSaveAgent in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSaveAutoTargetingRule in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSyncGoalsFromCampaignUI in tests/acquia_lift.test
AcquiaLiftWebTestAgentAdmin::testSyncGoalsFromVisitorUI in tests/acquia_lift.test

... See full list

File

tests/acquia_lift.test, line 78
Integration tests for Acquia Lift module.

Class

AcquiaLiftWebTestBase
@file Integration tests for Acquia Lift module.

Code

protected function assertQueueItems($expected_items) {
  $actual_items = array();
  $result = db_query('SELECT data FROM {queue} q WHERE name = \'acquia_lift_sync\' ORDER BY created ASC');
  foreach ($result as $row) {
    $actual_items[] = unserialize($row->data);
  }
  $this
    ->assertEqual($expected_items, $actual_items);
}