trait AcquiadamConfigTrait in Media: Acquia DAM 8
A shared mock config factory service.
Provides configuration used by the different tests.
Hierarchy
- trait \Drupal\Tests\media_acquiadam\Traits\AcquiadamConfigTrait
7 files declare their use of AcquiadamConfigTrait
- AcquiadamAssetTest.php in tests/
src/ Unit/ AcquiadamAssetTest.php - AcquiadamClientFactoryTest.php in tests/
src/ Unit/ AcquiadamClientFactoryTest.php - AcquiadamConfigFormTest.php in tests/
src/ Unit/ AcquiadamConfigFormTest.php - AcquiadamServiceTest.php in tests/
src/ Unit/ AcquiadamServiceTest.php - AssetFileEntityHelperTest.php in tests/
src/ Unit/ AssetFileEntityHelperTest.php
File
- tests/
src/ Traits/ AcquiadamConfigTrait.php, line 10
Namespace
Drupal\Tests\media_acquiadam\TraitsView source
trait AcquiadamConfigTrait {
/**
* {@inheritdoc}
*/
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AcquiadamConfigTrait:: |
public | function |