Skip to content

Commit

Permalink
Fix Symfony 7.2 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ostrolucky committed Oct 21, 2024
1 parent 821393e commit 61d190c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/CacheSchemaSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
3 changes: 3 additions & 0 deletions tests/DependencyInjection/Compiler/IdGeneratorPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ public function testRepositoryServiceWiring(): void
$extension->load([
'framework' => [
'http_method_override' => false,
'trust_x_sendfile_type_header' => '',

Check failure on line 95 in tests/DependencyInjection/Compiler/IdGeneratorPassTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (PHP: 8.3)

Array key not indented correctly; expected 16 spaces but found 20
'trusted_hosts' => '',

Check failure on line 96 in tests/DependencyInjection/Compiler/IdGeneratorPassTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (PHP: 8.3)

Array key not indented correctly; expected 16 spaces but found 20
'trusted_proxies' => '',

Check failure on line 97 in tests/DependencyInjection/Compiler/IdGeneratorPassTest.php

View workflow job for this annotation

GitHub Actions / Coding Standards / Coding Standards (PHP: 8.3)

Array key not indented correctly; expected 16 spaces but found 20
'annotations' => [
'enabled' => class_exists(AnnotationReader::class) && Kernel::VERSION_ID < 60400,
],
Expand Down
4 changes: 4 additions & 0 deletions tests/LockStoreSchemaListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]));

Expand Down
3 changes: 3 additions & 0 deletions tests/ServiceRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down

0 comments on commit 61d190c

Please sign in to comment.