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