public function DefaultConfigurationTest::testDefaultConfigurationValues in No Autocomplete 8
Tests the default configuration values.
File
- tests/
src/ Kernel/ DefaultConfigurationTest.php, line 24
Class
- DefaultConfigurationTest
- Test the module configurations.
Namespace
Drupal\Tests\no_autocomplete\KernelCode
public function testDefaultConfigurationValues() {
// Installing the configuration file.
$this
->installConfig(self::$modules);
// Getting the config factory service.
$config_factory = $this->container
->get('config.factory');
// Getting variable.
$no_autocomplete_login_form = $config_factory
->get('no_autocomplete.settings')
->get('no_autocomplete_login_form');
// Checking that the configuration variable is FALSE.
$this
->assertFalse($no_autocomplete_login_form, 'The default configuration value for no_autocomplete_login_form should be FALSE.');
}