fixed tests
This commit is contained in:
parent
4ed1d85b1a
commit
38ff7489dd
@ -194,7 +194,7 @@ class InlineFragmentRendererTest extends TestCase
|
|||||||
$expectedSubRequest = Request::create('/');
|
$expectedSubRequest = Request::create('/');
|
||||||
$expectedSubRequest->attributes->set('_format', 'foo');
|
$expectedSubRequest->attributes->set('_format', 'foo');
|
||||||
$expectedSubRequest->setLocale('fr');
|
$expectedSubRequest->setLocale('fr');
|
||||||
if (Request::HEADER_CLIENT_IP & Request::getTrustedHeaderSet()) {
|
if (Request::HEADER_X_FORWARDED_FOR & Request::getTrustedHeaderSet()) {
|
||||||
$expectedSubRequest->headers->set('x-forwarded-for', array('127.0.0.1'));
|
$expectedSubRequest->headers->set('x-forwarded-for', array('127.0.0.1'));
|
||||||
$expectedSubRequest->server->set('HTTP_X_FORWARDED_FOR', '127.0.0.1');
|
$expectedSubRequest->server->set('HTTP_X_FORWARDED_FOR', '127.0.0.1');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user