Skip to content

Commit

Permalink
[Translator] Add PHP tests in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed Apr 24, 2023
1 parent d144a42 commit e86b960
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Translator/tests/Kernel/AppKernelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

namespace Symfony\UX\Translator\Tests\Kernel;

use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symfony\UX\TwigComponent\Tests\Fixtures\Component\ComponentB;

/**
* @author Hugo Alliaume <[email protected]>
*
Expand All @@ -28,6 +31,17 @@ public function getLogDir(): string
return $this->createTmpDir('logs');
}

protected function configureContainer(ContainerConfigurator $c): void
{
$c->extension('framework', [
'secret' => 'S3CRET',
'test' => true,
'router' => ['utf8' => true],
'secrets' => false,
'http_method_override' => false,
]);
}

private function createTmpDir(string $type): string
{
$dir = sys_get_temp_dir().'/translator_bundle/'.uniqid($type.'_', true);
Expand Down

0 comments on commit e86b960

Please sign in to comment.