public function ImportQueueItemTest::testGetAuthor in Acquia Content Hub 8
Ensure an expected author can be retrieved from the ImportQueueItem.
@dataProvider provideAuthorItems
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 57
Class
- ImportQueueItemTest
- PHPUnit test for the ImportQueueItem.
Namespace
Drupal\Tests\acquia_contenthub\Unit\QueueItemCode
public function testGetAuthor(ImportQueueItem $item, $expected) {
// var_dump(\Drupal::config('acquia_contenthub.entity_config')->get('import_with_queue'));.
$this
->assertEquals($item
->get('author'), $expected);
}