You are here

public function WriteSafeSessionHandlerTest::providerTestOtherMethods in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php \Drupal\Tests\Core\Session\WriteSafeSessionHandlerTest::providerTestOtherMethods()
  2. 9 core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php \Drupal\Tests\Core\Session\WriteSafeSessionHandlerTest::providerTestOtherMethods()

Provides test data for the other methods test.

Return value

array Test data.

File

core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php, line 158

Class

WriteSafeSessionHandlerTest
Tests \Drupal\Core\Session\WriteSafeSessionHandler.

Namespace

Drupal\Tests\Core\Session

Code

public function providerTestOtherMethods() {
  return [
    [
      'open',
      TRUE,
      [
        '/some/path',
        'some-session-id',
      ],
    ],
    [
      'read',
      'some-session-data',
      [
        'a-session-id',
      ],
    ],
    [
      'close',
      TRUE,
      [],
    ],
    [
      'destroy',
      TRUE,
      [
        'old-session-id',
      ],
    ],
    [
      'gc',
      0,
      [
        42,
      ],
    ],
  ];
}