Skip to content

Commit

Permalink
Fix test suite for latest version of Symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse committed Sep 27, 2024
1 parent eec2d91 commit 989a5ea
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use AsyncAws\Symfony\Bundle\AsyncAwsBundle;
use AsyncAws\Symfony\Bundle\Secrets\SsmVault;
use Nyholm\BundleTest\TestKernel;
use Symfony\Component\DependencyInjection\Attribute\WhenNot;
use Symfony\Bundle\FrameworkBundle\EventListener\ConsoleProfilerListener;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use Symfony\Component\Cache\Adapter\ApcuAdapter;
Expand Down Expand Up @@ -279,6 +280,9 @@ private function bootWithConfig(array $configs): void
}

// hack to assert the version of the bundle
if (class_exists(WhenNot::class)) {
$kernel->addTestConfig(__DIR__ . '/Resources/config/base_sf72.yaml');
}
if (class_exists(ConsoleProfilerListener::class)) {
$kernel->addTestConfig(__DIR__ . '/Resources/config/base_sf64.yaml');
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
framework:
trusted_hosts: ''
trusted_proxies: ''
trusted_headers: ''
trust_x_sendfile_type_header: true

0 comments on commit 989a5ea

Please sign in to comment.