function WriteSafeSessionHandlerTest::providerTestOtherMethods

Same name and namespace in other branches
  1. 9 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 168

Class

WriteSafeSessionHandlerTest
Tests <a href="/api/drupal/core%21lib%21Drupal%21Core%21Session%21WriteSafeSessionHandler.php/class/WriteSafeSessionHandler/8.9.x" title="Wraps the session handler to prevent writes when not necessary or allowed." class="local">\Drupal\Core\Session\WriteSafeSessionHandler</a>.

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',
            TRUE,
            [
                42,
            ],
        ],
    ];
}

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