You are here

public function ImportQueueItemTest::provideAuthorItems in Acquia Content Hub 8

Provides a series of queue items with dependencies.

Return value

array A series of queue items with users.

File

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

Class

ImportQueueItemTest
PHPUnit test for the ImportQueueItem.

Namespace

Drupal\Tests\acquia_contenthub\Unit\QueueItem

Code

public function provideAuthorItems() {
  $this
    ->createContainer();
  $data = [];
  $data[] = [
    new ImportQueueItem('00000000-0000-0000-0000-000000000000', TRUE, TRUE),
    TRUE,
  ];
  $data[] = [
    new ImportQueueItem('00000000-0000-0000-0000-000000000000', FALSE, \Drupal::currentUser()),
    \Drupal::currentUser(),
  ];
  return $data;
}