public function LanguageCookieNegotiationConfigTest::testLanguageCookieDefaultConfig in Language Cookie 8
Test the language_cookie default config.
File
- tests/
src/ Functional/ LanguageCookieNegotiationConfigTest.php, line 15
Class
- LanguageCookieNegotiationConfigTest
- Test the language cookie negotiation config.
Namespace
Drupal\Tests\language_cookie\FunctionalCode
public function testLanguageCookieDefaultConfig() {
$config = $this
->config('language_cookie.negotiation');
$this
->assertEquals('language', $config
->get('param'));
$this
->assertEquals(31536000, $config
->get('time'));
$this
->assertEquals('/', $config
->get('path'));
$this
->assertEquals('', $config
->get('domain'));
$this
->assertFalse($config
->get('secure'));
$this
->assertTrue($config
->get('http_only'));
$this
->assertEquals('language_interface', $config
->get('language_type'));
$this
->assertFalse($config
->get('set_on_every_pageload'));
$this
->assertEquals([], $config
->get('blacklisted_paths'));
}