You are here

protected function ClientCDFTest::setUp in Acquia Content Hub 8.2

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/ClientCDFTest.php, line 72

Class

ClientCDFTest
Tests the client cdf.

Namespace

Drupal\Tests\acquia_contenthub\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this->clientUuid = '2d5ddb2b-b8dd-42af-be20-35d409eb473f';
  $this->database = \Drupal::database();
  $this
    ->installSchema('acquia_contenthub_subscriber', 'acquia_contenthub_subscriber_import_tracking');
  $this
    ->installSchema('acquia_contenthub_publisher', 'acquia_contenthub_publisher_export_tracking');
  $this->dispatcher = $this->container
    ->get('event_dispatcher');
  $this->adminSettings = \Drupal::configFactory()
    ->getEditable('acquia_contenthub.admin_settings');
  $this->adminSettings
    ->set('client_name', 'test-client')
    ->set('origin', '00000000-0000-0001-0000-123456789123')
    ->set('api_key', '123123123123123')
    ->set('secret_key', '123123123123123987654398765439876543')
    ->set('hostname', 'https://example.com')
    ->set('shared_secret', '12312321312321')
    ->save();
}