function AccessPolicyProcessorTest::cachingProvider

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php \Drupal\Tests\Core\Session\AccessPolicyProcessorTest::cachingProvider()

Data provider for testCaching().

Return value

array A list of testAccountSwitcher method arguments.

File

core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php, line 304

Class

AccessPolicyProcessorTest
Tests the AccessPolicyProcessor service.

Namespace

Drupal\Tests\Core\Session

Code

public static function cachingProvider() {
    $cases = [
        'no-cache' => [
            FALSE,
            FALSE,
        ],
        'static-cache-hit' => [
            FALSE,
            TRUE,
        ],
        'db-cache-hit' => [
            TRUE,
            FALSE,
        ],
    ];
    return $cases;
}

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