function CommandLineOrUnsafeMethodTest::providerTestHttpMethod
Same name in other branches
- 8.9.x core/tests/Drupal/Tests/Core/PageCache/CommandLineOrUnsafeMethodTest.php \Drupal\Tests\Core\PageCache\CommandLineOrUnsafeMethodTest::providerTestHttpMethod()
- 10 core/tests/Drupal/Tests/Core/PageCache/CommandLineOrUnsafeMethodTest.php \Drupal\Tests\Core\PageCache\CommandLineOrUnsafeMethodTest::providerTestHttpMethod()
- 11.x core/tests/Drupal/Tests/Core/PageCache/CommandLineOrUnsafeMethodTest.php \Drupal\Tests\Core\PageCache\CommandLineOrUnsafeMethodTest::providerTestHttpMethod()
Provides test data and expected results for the HTTP method test.
Return value
array Test data and expected results.
File
-
core/
tests/ Drupal/ Tests/ Core/ PageCache/ CommandLineOrUnsafeMethodTest.php, line 55
Class
- CommandLineOrUnsafeMethodTest
- @coversDefaultClass \Drupal\Core\PageCache\RequestPolicy\CommandLineOrUnsafeMethod @group PageCache
Namespace
Drupal\Tests\Core\PageCacheCode
public function providerTestHttpMethod() {
return [
[
NULL,
'GET',
],
[
NULL,
'HEAD',
],
[
RequestPolicyInterface::DENY,
'POST',
],
[
RequestPolicyInterface::DENY,
'PUT',
],
[
RequestPolicyInterface::DENY,
'DELETE',
],
[
RequestPolicyInterface::DENY,
'OPTIONS',
],
[
RequestPolicyInterface::DENY,
'TRACE',
],
[
RequestPolicyInterface::DENY,
'CONNECT',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.