function SessionConfigurationTest::providerTestConstructorDefaultSettings

Same name and namespace in other branches
  1. 10 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[[api-linebreak]] @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,
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.