You are here

public function SessionConfigurationTest::providerTestConstructorDefaultSettings in Drupal 10

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php \Drupal\Tests\Core\Session\SessionConfigurationTest::providerTestConstructorDefaultSettings()

Data provider for the constructor test.

@returns array Test data

File

core/tests/Drupal/Tests/Core/Session/SessionConfigurationTest.php, line 269

Class

SessionConfigurationTest
@coversDefaultClass \Drupal\Core\Session\SessionConfiguration @group Session

Namespace

Drupal\Tests\Core\Session

Code

public function providerTestConstructorDefaultSettings() {
  return [
    [
      [],
      48,
      6,
    ],
    [
      [
        'sid_length' => 100,
      ],
      100,
      6,
    ],
    [
      [
        'sid_bits_per_character' => 5,
      ],
      48,
      5,
    ],
    [
      [
        'sid_length' => 100,
        'sid_bits_per_character' => 5,
      ],
      100,
      5,
    ],
  ];
}