You are here

protected function ReadOnlyConfigTest::turnOnReadOnlySetting in Configuration Read-only mode 8

Turn on read-only mode.

5 calls to ReadOnlyConfigTest::turnOnReadOnlySetting()
ReadOnlyConfigTest::testModulePages in tests/src/Functional/ReadOnlyConfigTest.php
Tests switching the modules form to read-only.
ReadOnlyConfigTest::testSimpleConfig in tests/src/Functional/ReadOnlyConfigTest.php
Tests switching a simple config form to read-only.
ReadOnlyConfigTest::testSingleImport in tests/src/Functional/ReadOnlyConfigTest.php
Tests switching the config single import form to read-only.
ReadOnlyConfigWhitelistTest::testSimpleConfig in tests/src/Functional/ReadOnlyConfigWhitelistTest.php
Test simple config with whitelist.
ReadOnlyConfigWhitelistTest::testWhitelist in tests/src/Functional/ReadOnlyConfigWhitelistTest.php
Ensure that the whitelist allows a read-only form to become saveable.

File

tests/src/Functional/ReadOnlyConfigTest.php, line 54

Class

ReadOnlyConfigTest
Tests read-only module config functionality.

Namespace

Drupal\Tests\config_readonly\Functional

Code

protected function turnOnReadOnlySetting() {
  $settings['settings']['config_readonly'] = (object) [
    'value' => TRUE,
    'required' => TRUE,
  ];
  $this
    ->writeSettings($settings);
}