From 7bfb8e834aa1e82d107d5f7cfa139c0c5eb45581 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 | 4 ++++ tests/DependencyInjection/Compiler/IdGeneratorPassTest.php | 4 ++++ tests/LockStoreSchemaListenerTest.php | 4 ++++ tests/ServiceRepositoryTest.php | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/tests/CacheSchemaSubscriberTest.php b/tests/CacheSchemaSubscriberTest.php index defc2b8f..22bcc169 100644 --- a/tests/CacheSchemaSubscriberTest.php +++ b/tests/CacheSchemaSubscriberTest.php @@ -49,6 +49,10 @@ public function testSchemaSubscriberWiring(string $adapterId, string $subscriber '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/DependencyInjection/Compiler/IdGeneratorPassTest.php b/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php index c3525f54..f83cf725 100644 --- a/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php +++ b/tests/DependencyInjection/Compiler/IdGeneratorPassTest.php @@ -80,6 +80,10 @@ public function testRepositoryServiceWiring(): void 'kernel.secret' => 'test', 'container.build_id' => uniqid(), '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/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..e064f5a0 100644 --- a/tests/ServiceRepositoryTest.php +++ b/tests/ServiceRepositoryTest.php @@ -60,6 +60,10 @@ public function testRepositoryServiceWiring(): void 'kernel.secret' => 'test', 'container.build_id' => uniqid(), '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, ]));