From 94abb31a546c3844aeead516dc2edd2669490d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Ostroluck=C3=BD?= Date: Mon, 21 Oct 2024 21:49:51 +0200 Subject: [PATCH] Fix Symfony 7.2 tests --- tests/CacheSchemaSubscriberTest.php | 3 +++ tests/DependencyInjection/Compiler/IdGeneratorPassTest.php | 3 +++ tests/LockStoreSchemaListenerTest.php | 4 ++++ tests/ServiceRepositoryTest.php | 3 +++ 4 files changed, 13 insertions(+) diff --git a/tests/CacheSchemaSubscriberTest.php b/tests/CacheSchemaSubscriberTest.php index defc2b8f..12817c31 100644 --- a/tests/CacheSchemaSubscriberTest.php +++ b/tests/CacheSchemaSubscriberTest.php @@ -57,6 +57,9 @@ public function testSchemaSubscriberWiring(string $adapterId, string $subscriber $extension->load([ 'framework' => [ 'http_method_override' => false, + 'trust_x_sendfile_type_header' => '', + 'trusted_hosts' => '', + 'trusted_proxies' => '', 'cache' => [ 'pools' => [ 'my_cache_adapter' => ['adapter' => $adapterId], diff --git a/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php b/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php index c3525f54..52edb409 100644 --- a/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php +++ b/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php @@ -92,6 +92,9 @@ public function testRepositoryServiceWiring(): void $extension->load([ 'framework' => [ 'http_method_override' => false, + 'trust_x_sendfile_type_header' => '', + 'trusted_hosts' => '', + 'trusted_proxies' => '', 'annotations' => [ 'enabled' => class_exists(AnnotationReader::class) && Kernel::VERSION_ID < 60400, ], diff --git a/tests/LockStoreSchemaListenerTest.php b/tests/LockStoreSchemaListenerTest.php index f2d62e34..93f4a182 100644 --- a/tests/LockStoreSchemaListenerTest.php +++ b/tests/LockStoreSchemaListenerTest.php @@ -47,6 +47,10 @@ public function testLockStoreSchemaSubscriberWiring(array $config, int $expected 'kernel.container_class' => ContainerBuilder::class, 'kernel.secret' => 'test', 'env(base64:default::SYMFONY_DECRYPTION_SECRET)' => 'foo', + 'env(bool:default::SYMFONY_TRUST_X_SENDFILE_TYPE_HEADER)' => '', + 'env(default::SYMFONY_TRUSTED_HOSTS)' => '', + 'env(default::SYMFONY_TRUSTED_PROXIES)' => '', + 'env(default::SYMFONY_TRUSTED_HEADERS)' => '', 'debug.file_link_format' => null, ])); diff --git a/tests/ServiceRepositoryTest.php b/tests/ServiceRepositoryTest.php index 3f2a3e5c..a8065453 100644 --- a/tests/ServiceRepositoryTest.php +++ b/tests/ServiceRepositoryTest.php @@ -73,6 +73,9 @@ public function testRepositoryServiceWiring(): void 'framework' => [ 'http_method_override' => false, 'php_errors' => ['log' => true], + 'trust_x_sendfile_type_header' => '', + 'trusted_hosts' => '', + 'trusted_proxies' => '', 'annotations' => [ 'enabled' => class_exists(AnnotationReader::class) && Kernel::VERSION_ID < 60400, ],