DefaultConfigurationTest.php in Sidr: Accessible Mobile Menus 8.3
File
tests/src/Kernel/DefaultConfigurationTest.php
View source
<?php
namespace Drupal\Tests\sidr\Kernel;
use Drupal\KernelTests\KernelTestBase;
class DefaultConfigurationTest extends KernelTestBase {
protected static $modules = [
'sidr',
];
public function testDefaultConfigurationValues() {
$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'));
}
}