function SessionConfigurationTest::providerTestConstructorDefaultSettings

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.

Return value

array Test data

File

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

Class

SessionConfigurationTest
@coversDefaultClass \Drupal\Core\Session\SessionConfiguration[[api-linebreak]] @group Session

Namespace

Drupal\Tests\Core\Session

Code

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

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