protected function ImportTrackingTest::invokeImportUpdateAssets in Acquia Content Hub 8.2
Triggers HANDLE_WEBHOOK event.
Parameters
array $payload: Payload data.
5 calls to ImportTrackingTest::invokeImportUpdateAssets()
- ImportTrackingTest::testImportQueueOperations in tests/
src/ Kernel/ ImportTrackingTest.php - Tests adding items to queue.
- ImportTrackingTest::testTrackingWhenInitiatorAndAssetUuidIsIdentical in tests/
src/ Kernel/ ImportTrackingTest.php - Tests identical UUIDs in initiator and asset.
- ImportTrackingTest::testTrackingWithEmptyAssets in tests/
src/ Kernel/ ImportTrackingTest.php - Tests tracking with empty assets.
- ImportTrackingTest::testTrackingWithWrongAssetType in tests/
src/ Kernel/ ImportTrackingTest.php - Testes wrong assets type.
- ImportTrackingTest::testTrackingWithWrongPayloadStatus in tests/
src/ Kernel/ ImportTrackingTest.php - Tests tracking with wrong payload status.
File
- tests/
src/ Kernel/ ImportTrackingTest.php, line 241
Class
- ImportTrackingTest
- Class ImportTest.
Namespace
Drupal\Tests\acquia_contenthub\KernelCode
protected function invokeImportUpdateAssets(array $payload) {
$request = Request::createFromGlobals();
$key = new Key('id', 'secret');
$event = new HandleWebhookEvent($request, $payload, $key, $this->clientFactory
->getClient());
$this->dispatcher
->dispatch(AcquiaContentHubEvents::HANDLE_WEBHOOK, $event);
}