function ChainRequestPolicyTest::providerAllowIfAnyRuleReturnedAllow

Provides test data for testAllowIfAnyRuleReturnedAllow.

Return value

array Test input and expected result.

File

core/tests/Drupal/Tests/Core/PageCache/ChainRequestPolicyTest.php, line 137

Class

ChainRequestPolicyTest
Tests Drupal\Core\PageCache\ChainRequestPolicy.

Namespace

Drupal\Tests\Core\PageCache

Code

public static function providerAllowIfAnyRuleReturnedAllow() {
  return [
    [
      [
        RequestPolicyInterface::ALLOW,
      ],
    ],
    [
      [
        NULL,
        RequestPolicyInterface::ALLOW,
      ],
    ],
  ];
}

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