You are here

public function ImportQueueItemTest::testGetUuid in Acquia Content Hub 8

Ensure an expected UUID can be retrieved from the ImportQueueItem.

@dataProvider provideUuidItems

Parameters

\Drupal\acquia_contenthub\QueueItem\ImportQueueItem $item: A test ImportQueueItem object.

string $expected: The expected UUID.

File

tests/src/Unit/QueueItem/ImportQueueItemTest.php, line 29

Class

ImportQueueItemTest
PHPUnit test for the ImportQueueItem.

Namespace

Drupal\Tests\acquia_contenthub\Unit\QueueItem

Code

public function testGetUuid(ImportQueueItem $item, $expected) {
  $this
    ->assertEquals($item
    ->get('uuid'), $expected);
}