function WriteSafeSessionHandlerTest::providerTestOtherMethods

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php \Drupal\Tests\Core\Session\WriteSafeSessionHandlerTest::providerTestOtherMethods()
  2. 10 core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php \Drupal\Tests\Core\Session\WriteSafeSessionHandlerTest::providerTestOtherMethods()
  3. 11.x 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 161

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,
            ],
        ],
    ];
}

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