public function AutoEntityLabelTest::setConfiguration in Automatic Entity Label 8.3
Sets the configuration values.
Parameters
array $params: Array of values to be configured.
4 calls to AutoEntityLabelTest::setConfiguration()
- AutoEntityLabelTest::testDisabledOption in tests/
src/ Kernel/ AutoEntityLabelTest.php  - Tests node creation with disabled settings.
 - AutoEntityLabelTest::testEnabledOption in tests/
src/ Kernel/ AutoEntityLabelTest.php  - Tests node creation with enabled settings.
 - AutoEntityLabelTest::testEscapeOption in tests/
src/ Kernel/ AutoEntityLabelTest.php  - Tests node creation with 'Remove special characters' option selected.
 - AutoEntityLabelTest::testOptionalOption in tests/
src/ Kernel/ AutoEntityLabelTest.php  - Tests node creation with optional settings.
 
File
- tests/
src/ Kernel/ AutoEntityLabelTest.php, line 146  
Class
- AutoEntityLabelTest
 - Tests for auto entity label.
 
Namespace
Drupal\Tests\auto_entitylabel\KernelCode
public function setConfiguration(array $params) {
  $autoEntityLabelSettings = $this->configFactory
    ->getEditable("auto_entitylabel.settings.node.{$this->nodeType->id()}");
  foreach ($params as $key => $value) {
    $autoEntityLabelSettings
      ->set($key, $value);
  }
  $autoEntityLabelSettings
    ->save();
}