Sort of get config to work

This commit is contained in:
Brabli
2022-08-14 15:16:00 +01:00
parent 03b705cf5f
commit 8149b9494d
11 changed files with 111 additions and 33 deletions

30
tests/TestKernel.php Normal file
View File

@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace Pcm\IconBundle\Tests;
use Pcm\IconBundle\PcmIconBundle;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
class TestKernel extends Kernel
{
/**
* @return array
*/
public function registerBundles(): array
{
return [
new PcmIconBundle()
];
}
/**
* @param LoaderInterface $loader
*/
public function registerContainerConfiguration(LoaderInterface $loader): void
{
$loader->load(__DIR__.'/../config/packages/pcm_icon.yaml');
}
}