protected function AbstractTestMessageUi::configSet in Message UI 8
Set a config value.
Parameters
string $config: The config name.
string $value: The config value.
string $storage: The storing of the configuration. Default to message.message.
Overrides MessageTestBase::configSet
3 calls to AbstractTestMessageUi::configSet()
- MessageUiMassiveHardCodedArgumentsTest::testRemoveAddingArguments in tests/
src/ Functional/ MessageUiMassiveHardCodedArgumentsTest.php - Test removal of added arguments.
- MessageUiShowPreviewTest::setUp in tests/
src/ Functional/ MessageUiShowPreviewTest.php - MessageUiShowPreviewTest::testMessageUiPreviewDisplaying in tests/
src/ Functional/ MessageUiShowPreviewTest.php - Testing the displaying of the preview.
File
- tests/
src/ Functional/ AbstractTestMessageUi.php, line 55
Class
- AbstractTestMessageUi
- Abstract class for Message UI tests.
Namespace
Drupal\Tests\message_ui\FunctionalCode
protected function configSet($config, $value, $storage = 'message_ui.settings') {
$this->container
->get('config.factory')
->getEditable($storage)
->set($config, $value)
->save();
}