You are here

public function ReverseProxyMiddlewareTest::reverseProxyEnabledProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php \Drupal\Tests\Core\StackMiddleware\ReverseProxyMiddlewareTest::reverseProxyEnabledProvider()

Data provider for testReverseProxyEnabled.

File

core/tests/Drupal/Tests/Core/StackMiddleware/ReverseProxyMiddlewareTest.php, line 65
Contains \Drupal\Tests\Core\StackMiddleware\ReverseProxyMiddlewareTest.

Class

ReverseProxyMiddlewareTest
Unit test the reverse proxy stack middleware.

Namespace

Drupal\Tests\Core\StackMiddleware

Code

public function reverseProxyEnabledProvider() {
  return array(
    array(
      array(
        'reverse_proxy_header' => 'X_FORWARDED_FOR_CUSTOMIZED',
        'reverse_proxy_proto_header' => 'X_FORWARDED_PROTO_CUSTOMIZED',
        'reverse_proxy_host_header' => 'X_FORWARDED_HOST_CUSTOMIZED',
        'reverse_proxy_port_header' => 'X_FORWARDED_PORT_CUSTOMIZED',
        'reverse_proxy_forwarded_header' => 'FORWARDED_CUSTOMIZED',
        'reverse_proxy_addresses' => array(
          '127.0.0.2',
          '127.0.0.3',
        ),
      ),
    ),
  );
}