Skip to content

Commit df06196

Browse files
committed
Fixing deprecation and tests in 5.1
1 parent 1ded15f commit df06196

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/IntegrationTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ protected function configureContainer(ContainerBuilder $container, LoaderInterfa
241241
{
242242
$container->loadFromExtension('framework', [
243243
'secret' => 'foo',
244+
'router' => [
245+
'utf8' => true,
246+
],
244247
'assets' => [
245248
'enabled' => $this->enableAssets,
246249
],
@@ -297,9 +300,9 @@ public function renderFoo()
297300
}
298301
}
299302

300-
if (method_exists(AbstractWebpackEncoreIntegrationTestKernel::class, 'configureRouting')) {
303+
if (Kernel::VERSION_ID >= 50100) {
301304
class WebpackEncoreIntegrationTestKernel extends AbstractWebpackEncoreIntegrationTestKernel {
302-
protected function configureRouting(RoutingConfigurator $routes): void
305+
protected function configureRoutes(RoutingConfigurator $routes): void
303306
{
304307
$routes->add('/foo', 'kernel:'.(parent::VERSION_ID >= 40100 ? ':' : '').'renderFoo');
305308
}

0 commit comments

Comments
 (0)