Skip to content

Commit b92b042

Browse files
westonruterb1ink0
andcommitted
Remove invalid_decoded_json_body_content_length test case
Co-authored-by: b1ink0 <[email protected]>
1 parent ddcd3ae commit b92b042

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

plugins/optimization-detective/tests/storage/test-class-od-rest-url-metrics-store-endpoint.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -392,24 +392,6 @@ public function data_provider_invalid_params(): array {
392392
'expected_status' => 413,
393393
'expected_code' => 'rest_content_too_large',
394394
),
395-
'invalid_decoded_json_body_content_length' => array(
396-
'params' => array_merge(
397-
$valid_params,
398-
array(
399-
// Fill the JSON with more than 1MB of highly compressible data.
400-
'elements' => array(
401-
array_merge(
402-
$valid_element,
403-
array(
404-
'xpath' => sprintf( '/HTML/BODY/DIV[@id=\'%s\']/*[1][self::DIV]', str_repeat( 'A', MB_IN_BYTES ) ),
405-
)
406-
),
407-
),
408-
)
409-
),
410-
'expected_status' => 413,
411-
'expected_code' => 'rest_content_too_large',
412-
),
413395
'invalid_elements_prop_intersection_ratio' => array(
414396
'params' => array_merge(
415397
$valid_params,

0 commit comments

Comments
 (0)