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

View File

@@ -4,7 +4,8 @@ declare(strict_types=1);
namespace Pcm\IconBundle\Tests\Twig\Functions;
use Pcm\IconBundle\Tests\AppKernel;
use Pcm\IconBundle\DependencyInjection\PcmIconExtension;
use Pcm\IconBundle\Tests\TestKernel;
use Pcm\IconBundle\Twig\Functions\IconExtension;
use Pcm\IconBundle\Twig\Functions\IconNotFound;
use PHPUnit\Framework\TestCase;
@@ -20,7 +21,7 @@ class IconExtensionTest extends TestCase
protected function setUp(): void
{
$kernel = new AppKernel('test', false);
$kernel = new TestKernel('test', true);
$kernel->boot();
$this->icon = $kernel->getContainer()->get('pcm_icon.icon_extension');
}