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