DefaultConfigurationTest.php in Modules weight 8
File
tests/src/Kernel/DefaultConfigurationTest.php
View source
<?php
namespace Drupal\Tests\modules_weight\Kernel;
use Drupal\KernelTests\KernelTestBase;
class DefaultConfigurationTest extends KernelTestBase {
protected static $modules = [
'modules_weight',
];
public function testDefaultConfigurationValues() {
$this
->installConfig(self::$modules);
$config_factory = $this->container
->get('config.factory');
$show_system_modules = $config_factory
->get('modules_weight.settings')
->get('show_system_modules');
$this
->assertFalse($show_system_modules, 'The default configuration value for show_system_modules should be FALSE.');
}
}