public function DefaultConfigurationTest::testDefaultConfigurationValues in Sidr: Accessible Mobile Menus 8.3
Same name and namespace in other branches
- 8.2 tests/src/Kernel/DefaultConfigurationTest.php \Drupal\Tests\sidr\Kernel\DefaultConfigurationTest::testDefaultConfigurationValues()
Tests the default configuration values.
File
- tests/
src/ Kernel/ DefaultConfigurationTest.php, line 24
Class
- DefaultConfigurationTest
- Test the module configurations.
Namespace
Drupal\Tests\sidr\KernelCode
public function testDefaultConfigurationValues() {
// Installing the configuration file.
$this
->installConfig(self::$modules);
$sidr_settings = $this->container
->get('config.factory')
->get('sidr.settings');
$this
->assertSame('dark', $sidr_settings
->get('sidr_theme'));
$this
->assertSame(TRUE, $sidr_settings
->get('close_on_blur'));
$this
->assertSame(TRUE, $sidr_settings
->get('close_on_escape'));
}