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