Skip to content

Commit 23073a8

Browse files
committed
Fix tests under --prefer-lowest
1 parent 443db84 commit 23073a8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/DependencyInjection/ConfigurationTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,6 @@ public function optionValuesProvider(): array
112112
['excluded_exceptions', [\Throwable::class]],
113113
['logger', 'some-logger'],
114114
['max_breadcrumbs', 15],
115-
['max_request_body_size', 'none'],
116-
['max_request_body_size', 'small'],
117-
['max_request_body_size', 'medium'],
118-
['max_request_body_size', 'always'],
119115
['max_value_length', 1000],
120116
['prefixes', ['some-string']],
121117
['project_root', '/some/dir'],
@@ -134,6 +130,13 @@ public function optionValuesProvider(): array
134130
}
135131

136132
if ($this->classSerializersAreSupported()) {
133+
$options[] = ['max_request_body_size', 'none'];
134+
$options[] = ['max_request_body_size', 'small'];
135+
$options[] = ['max_request_body_size', 'medium'];
136+
$options[] = ['max_request_body_size', 'always'];
137+
}
138+
139+
if ($this->maxRequestBodySizeIsSupported()) {
137140
$options[] = ['class_serializers', ['count']];
138141
}
139142

0 commit comments

Comments
 (0)