public function SessionConfigurationTest::testCookieSecure in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::testCookieSecure()
- 10 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::testCookieSecure()
Tests whether the session.cookie_secure ini settings is computed correctly.
@covers ::getOptions
@dataProvider providerTestCookieSecure
File
- core/
tests/ Drupal/ Tests/ Core/ Session/ SessionConfigurationTest.php, line 110
Class
- SessionConfigurationTest
- @coversDefaultClass \Drupal\Core\Session\SessionConfiguration @group Session
Namespace
Drupal\Tests\Core\SessionCode
public function testCookieSecure($uri, $expected_secure) {
$config = $this
->createSessionConfiguration();
$request = Request::create($uri);
$options = $config
->getOptions($request);
$this
->assertEquals($expected_secure, $options['cookie_secure']);
}