public function ReadOnlyConfigWhitelistTest::testSimpleConfig in Configuration Read-only mode 8
Test simple config with whitelist.
Overrides ReadOnlyConfigTest::testSimpleConfig
File
- tests/
src/ Functional/ ReadOnlyConfigWhitelistTest.php, line 55
Class
- ReadOnlyConfigWhitelistTest
- Tests read-only module config whitelist functionality.
Namespace
Drupal\Tests\config_readonly\FunctionalCode
public function testSimpleConfig() {
$assert_session = $this
->assertSession();
$this
->drupalGet('admin/config/development/configuration/single/import');
// Warning not shown on single config import page.
$assert_session
->pageTextNotContains('This form will not be saved because the configuration active store is read-only.');
$this
->drupalGet('admin/config/development/performance');
// Warning not shown on performance config page.
$assert_session
->pageTextNotContains('This form will not be saved because the configuration active store is read-only.');
$this
->turnOnReadOnlySetting();
$this
->drupalGet('admin/config/development/configuration/single/import');
// Warning shown on single config import page.
$assert_session
->pageTextContains('This form will not be saved because the configuration active store is read-only.');
$this
->drupalGet('admin/config/development/performance');
// Warning not shown on performance config page.
$assert_session
->pageTextNotContains('This form will not be saved because the configuration active store is read-only.');
}