You are here

protected function AcquiadamNotificationTest::enableNotificationSync in Media: Acquia DAM 8

Enable notification sync.

1 call to AcquiadamNotificationTest::enableNotificationSync()
AcquiadamNotificationTest::setUp in tests/src/Kernel/AcquiadamNotificationTest.php

File

tests/src/Kernel/AcquiadamNotificationTest.php, line 76

Class

AcquiadamNotificationTest
Tests integration with notification API.

Namespace

Drupal\Tests\media_acquiadam\Kernel

Code

protected function enableNotificationSync() {
  $config_factory = $this->container
    ->get('config.factory');
  $config = $config_factory
    ->getEditable('media_acquiadam.settings');
  $config
    ->set('sync_interval', -1);
  $config
    ->set('notifications_sync', 1);
  $config
    ->save(TRUE);
}