function SessionConfigurationTest::testCookieSecureNotOverridable
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::testCookieSecureNotOverridable()
- 8.9.x core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::testCookieSecureNotOverridable()
- 10 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::testCookieSecureNotOverridable()
Tests that session.cookie_secure ini settings cannot be overridden.
@covers ::__construct @covers ::getOptions
@dataProvider providerTestCookieSecure
File
-
core/
tests/ Drupal/ Tests/ Core/ Session/ SessionConfigurationTest.php, line 140
Class
- SessionConfigurationTest
- @coversDefaultClass \Drupal\Core\Session\SessionConfiguration @group Session
Namespace
Drupal\Tests\Core\SessionCode
public function testCookieSecureNotOverridable($uri, $expected_secure) : void {
$config = $this->createSessionConfiguration([
'cookie_secure' => FALSE,
]);
$request = Request::create($uri);
$options = $config->getOptions($request);
$this->assertEquals($expected_secure, $options['cookie_secure']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.