You are here

public function PushQueueTest::testClaimItem in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_push/tests/src/Unit/PushQueueTest.php \Drupal\Tests\salesforce_push\Unit\PushQueueTest::testClaimItem()
  2. 5.0.x modules/salesforce_push/tests/src/Unit/PushQueueTest.php \Drupal\Tests\salesforce_push\Unit\PushQueueTest::testClaimItem()

@covers ::claimItem

File

modules/salesforce_push/tests/src/Unit/PushQueueTest.php, line 108

Class

PushQueueTest
Test Object instantitation.

Namespace

Drupal\Tests\salesforce_push\Unit

Code

public function testClaimItem() {
  $this->queue = PushQueue::create(\Drupal::getContainer());
  $this
    ->expectException(\Exception::class);
  $this->queue
    ->claimItem();
}