Skip to content

Commit 9ce8300

Browse files
authored
Fix test suite for latest version of Symfony (#1771)
1 parent 5e43502 commit 9ce8300

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

tests/Functional/BundleInitializationTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
2121
use Symfony\Component\Cache\Adapter\ApcuAdapter;
2222
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
23+
use Symfony\Component\DependencyInjection\Attribute\WhenNot;
2324
use Symfony\Component\HttpKernel\KernelInterface;
2425

2526
class BundleInitializationTest extends KernelTestCase
@@ -279,6 +280,9 @@ private function bootWithConfig(array $configs): void
279280
}
280281

281282
// hack to assert the version of the bundle
283+
if (class_exists(WhenNot::class)) {
284+
$kernel->addTestConfig(__DIR__ . '/Resources/config/base_sf72.yaml');
285+
}
282286
if (class_exists(ConsoleProfilerListener::class)) {
283287
$kernel->addTestConfig(__DIR__ . '/Resources/config/base_sf64.yaml');
284288
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
framework:
2+
trusted_hosts: ''
3+
trusted_proxies: ''
4+
trusted_headers: ''
5+
trust_x_sendfile_type_header: true
6+

0 commit comments

Comments
 (0)