public function ImportTrackingTest::testTrackingWithWrongAssetType in Acquia Content Hub 8.2
Testes wrong assets type.
Only items with following types will be tracked:
- drupal8_content_entity
- drupal8_config_entity.
File
- tests/
src/ Kernel/ ImportTrackingTest.php, line 168
Class
- ImportTrackingTest
- Class ImportTest.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
public function testTrackingWithWrongAssetType() {
$payload = [
'status' => 'successful',
'crud' => 'update',
'assets' => [
[
'uuid' => '00000000-0003-460b-ac74-b6bed08b4441',
'type' => 'unknown_entity_type',
],
],
'initiator' => $this->initiatorID,
];
$this
->invokeImportUpdateAssets($payload);
$this
->assertEquals(0, $this->importQueue
->getQueueCount());
}