You are here

private function SettingsDataTrait::setValidSettings in Acquia Lift Connector 8

Same name and namespace in other branches
  1. 8.3 src/Tests/SettingsDataTrait.php \Drupal\acquia_lift\Tests\SettingsDataTrait::setValidSettings()

Set valid settings.

Return value

array A valid settings array.

1 call to SettingsDataTrait::setValidSettings()
SettingsTest::testJavaScriptAndDrupalSettings in src/Tests/SettingsTest.php

File

src/Tests/SettingsDataTrait.php, line 20
Contains \Drupal\acquia_lift\Tests\SettingsDataTrait.

Class

SettingsDataTrait
Settings Data Trait.

Namespace

Drupal\acquia_lift\Tests

Code

private function setValidSettings() {
  $settings = $this
    ->config('acquia_lift.settings');
  $settings
    ->set('credential', $this
    ->getValidCredentialSettings());
  $settings
    ->set('identity', $this
    ->getValidIdentitySettings());
  $settings
    ->set('field_mappings', $this
    ->getValidFieldMappingsSettings());
  $settings
    ->set('thumbnail', $this
    ->getValidThumbnailSettings());
  $settings
    ->set('visibility', $this
    ->getValidVisibilitySettings());
  $settings
    ->save();
}