You are here

public function ImportQueueItemTest::testDependencies in Acquia Content Hub 8

Ensure an expected dependency can be retrieved from the ImportQueueItem.

@dataProvider provideDependencyItems

Parameters

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

string $expected: The expected dependency status.

File

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

Class

ImportQueueItemTest
PHPUnit test for the ImportQueueItem.

Namespace

Drupal\Tests\acquia_contenthub\Unit\QueueItem

Code

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