Skip to content

Commit e86b960

Browse files
committed
[Translator] Add PHP tests in CI
1 parent d144a42 commit e86b960

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Translator/tests/Kernel/AppKernelTrait.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111

1212
namespace Symfony\UX\Translator\Tests\Kernel;
1313

14+
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
15+
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentB;
16+
1417
/**
1518
* @author Hugo Alliaume <hugo@alliau.me>
1619
*
@@ -28,6 +31,17 @@ public function getLogDir(): string
2831
return $this->createTmpDir('logs');
2932
}
3033

34+
protected function configureContainer(ContainerConfigurator $c): void
35+
{
36+
$c->extension('framework', [
37+
'secret' => 'S3CRET',
38+
'test' => true,
39+
'router' => ['utf8' => true],
40+
'secrets' => false,
41+
'http_method_override' => false,
42+
]);
43+
}
44+
3145
private function createTmpDir(string $type): string
3246
{
3347
$dir = sys_get_temp_dir().'/translator_bundle/'.uniqid($type.'_', true);

0 commit comments

Comments
 (0)