You are here

public function AcquiadamConfigTrait::getConfigFactoryStub in Media: Acquia DAM 8

4 calls to AcquiadamConfigTrait::getConfigFactoryStub()
AcquiadamClientFactoryTest::setUp in tests/src/Unit/AcquiadamClientFactoryTest.php
AcquiadamConfigFormTest::setUp in tests/src/Unit/AcquiadamConfigFormTest.php
AcquiadamServiceTest::setUp in tests/src/Unit/AcquiadamServiceTest.php
OauthTest::setUp in tests/src/Unit/OauthTest.php

File

tests/src/Traits/AcquiadamConfigTrait.php, line 15

Class

AcquiadamConfigTrait
A shared mock config factory service.

Namespace

Drupal\Tests\media_acquiadam\Traits

Code

public function getConfigFactoryStub(array $configs = []) {
  return parent::getConfigFactoryStub([
    'media_acquiadam.settings' => [
      'username' => 'WDusername',
      'password' => 'WDpassword',
      'client_id' => 'WDclient-id',
      'secret' => 'WDsecret',
      'sync_interval' => '14400',
      'size_limit' => 1280,
      'notifications_sync' => 1,
    ],
    'system.file' => [
      'default_scheme' => 'public',
    ],
    'media.settings' => [
      'icon_base_uri' => 'public://media-icons',
    ],
  ] + $configs);
}