You are here

public function ReExportTest::dataProvider in Acquia Content Hub 8.2

Data provider for testUpdatePublished.

File

modules/acquia_contenthub_publisher/tests/src/Kernel/EventSubscriber/HandleWebhook/ReExportTest.php, line 225

Class

ReExportTest
Tests Re-export functionality from a Webhook.

Namespace

Drupal\Tests\acquia_contenthub_publisher\Kernel\EventSubscriber\HandleWebhook

Code

public function dataProvider() : array {
  return [
    [
      'test_entity',
      '11111111-1111-1111-0000-111111111111',
      '',
      '',
      404,
      'The entity "test_entity:11111111-1111-1111-0000-111111111111" could not be found and thus cannot be re-exported from a webhook request by origin = 98213529-0000-2222-0000-123456789123.',
    ],
    [
      'node',
      '98213529-0000-0001-0000-123456789123',
      '',
      'queued',
      200,
      'Entity "node/98213529-0000-0001-0000-123456789123" successfully enqueued for export from webhook UUID = 98213529-0000-0001-0000-123456789123 by origin = 98213529-0000-2222-0000-123456789123.',
    ],
  ];
}