MAJ en Thelia 2.3.4
This commit is contained in:
3
tests/phpunit/Thelia/Tests/Command/CacheClearTest.php
Normal file → Executable file
3
tests/phpunit/Thelia/Tests/Command/CacheClearTest.php
Normal file → Executable file
@@ -12,6 +12,7 @@
|
||||
|
||||
namespace Thelia\Tests\Command;
|
||||
|
||||
use Symfony\Component\Cache\Adapter\ArrayAdapter;
|
||||
use Symfony\Component\Console\Tester\CommandTester;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\EventDispatcher\EventDispatcher;
|
||||
@@ -101,7 +102,7 @@ class CacheClearTest extends ContainerAwareTestCase
|
||||
protected function buildContainer(ContainerBuilder $container)
|
||||
{
|
||||
$eventDispatcher = new EventDispatcher();
|
||||
$eventDispatcher->addSubscriber(new Cache());
|
||||
$eventDispatcher->addSubscriber(new Cache(new ArrayAdapter()));
|
||||
|
||||
$container->set("event_dispatcher", $eventDispatcher);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user