Skip to content

Commit d528d7f

Browse files
committed
Merge branch '5.2' into 5.x
* 5.2: [Form] Ignoring invalid forms from delete_empty behavior in CollectionType Add Symfony Armenian Translations cs fix Add different header notations to tests
2 parents 56bcf81 + 3ca3a57 commit d528d7f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Tests/HttpBrowserTest.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,18 @@ public function validContentTypes()
6363
['POST', 'http://example.com/', [], [], ['CONTENT_TYPE' => 'application/json'], '["content"]'],
6464
['POST', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
6565
];
66+
yield 'custom header with HTTP_ prefix' => [
67+
['PUT', 'http://example.com/', [], [], ['HTTP_CONTENT_TYPE' => 'application/json'], '["content"]'],
68+
['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
69+
];
70+
yield 'modify notation of custom header with HTTP_ prefix' => [
71+
['PUT', 'http://example.com/', [], [], ['HTTP_Content-Type' => 'application/json'], '["content"]'],
72+
['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
73+
];
74+
yield 'modify notation of custom header' => [
75+
['PUT', 'http://example.com/', [], [], ['Content-Type' => 'application/json'], '["content"]'],
76+
['PUT', 'http://example.com/', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],
77+
];
6678
yield 'GET JSON' => [
6779
['GET', 'http://example.com/jsonrpc', [], [], ['CONTENT_TYPE' => 'application/json'], '["content"]'],
6880
['GET', 'http://example.com/jsonrpc', ['headers' => $defaultHeaders + ['content-type' => 'application/json'], 'body' => '["content"]', 'max_redirects' => 0]],

0 commit comments

Comments
 (0)