You are here

protected function ServicesClientBaseWebTestCase::getQueueItem in Services Client 7.2

Retrieve single item from queue.

Parameters

string $name: Optional name of the queue. If non provided, default services client queue will be queued.

Return value

stdClass Drupal queue item.

1 call to ServicesClientBaseWebTestCase::getQueueItem()
ServicesClientWebTestCase::testServicesClientProcessing in tests/services_client.test

File

tests/services_client.test, line 334
Tests for the Administration menu module.

Class

ServicesClientBaseWebTestCase
@file Tests for the Administration menu module.

Code

protected function getQueueItem($name = 'services_client_sync') {
  $queue = DrupalQueue::get($name, TRUE);
  return $queue
    ->claimItem();
}