You are here

private static function CleanerTest::setConfig in Cleaner 8

Set cleaner's config.

Parameters

string $name: Name of the config.

string|int $value: Config value.

2 calls to CleanerTest::setConfig()
CleanerTest::testCleanerClearCache in src/Tests/CleanerTest.php
Test Cleaner clearing caches.
CleanerTest::testCleanerClearWatchdog in src/Tests/CleanerTest.php
Test Cleaner clearing watchdog logs.

File

src/Tests/CleanerTest.php, line 107

Class

CleanerTest
Class CleanerTest.

Namespace

Drupal\cleaner\Tests

Code

private static function setConfig($name, $value) {
  \Drupal::configFactory()
    ->getEditable(CLEANER_SETTINGS)
    ->set($name, $value)
    ->save();
}