1212namespace Symfony \Bundle \FrameworkBundle \Tests \DependencyInjection \Compiler ;
1313
1414use PHPUnit \Framework \TestCase ;
15- use Symfony \Bundle \FrameworkBundle \Command \CachePoolPruneCommand ;
1615use Symfony \Bundle \FrameworkBundle \DependencyInjection \Compiler \CachePoolPrunerPass ;
1716use Symfony \Component \Cache \Adapter \FilesystemAdapter ;
1817use Symfony \Component \Cache \Adapter \PhpFilesAdapter ;
@@ -25,7 +24,7 @@ class CachePoolPrunerPassTest extends TestCase
2524 public function testCompilerPassReplacesCommandArgument ()
2625 {
2726 $ container = new ContainerBuilder ();
28- $ container ->register (CachePoolPruneCommand::class )->addArgument (array ());
27+ $ container ->register (' console.command.cache_pool_prune ' )->addArgument (array ());
2928 $ container ->register ('pool.foo ' , FilesystemAdapter::class)->addTag ('cache.pool ' );
3029 $ container ->register ('pool.bar ' , PhpFilesAdapter::class)->addTag ('cache.pool ' );
3130
@@ -36,7 +35,7 @@ public function testCompilerPassReplacesCommandArgument()
3635 'pool.foo ' => new Reference ('pool.foo ' ),
3736 'pool.bar ' => new Reference ('pool.bar ' ),
3837 );
39- $ argument = $ container ->getDefinition (CachePoolPruneCommand::class )->getArgument (0 );
38+ $ argument = $ container ->getDefinition (' console.command.cache_pool_prune ' )->getArgument (0 );
4039
4140 $ this ->assertInstanceOf (IteratorArgument::class, $ argument );
4241 $ this ->assertEquals ($ expected , $ argument ->getValues ());
@@ -64,7 +63,7 @@ public function testCompilePassIsIgnoredIfCommandDoesNotExist()
6463 public function testCompilerPassThrowsOnInvalidDefinitionClass ()
6564 {
6665 $ container = new ContainerBuilder ();
67- $ container ->register (CachePoolPruneCommand::class )->addArgument (array ());
66+ $ container ->register (' console.command.cache_pool_prune ' )->addArgument (array ());
6867 $ container ->register ('pool.not-found ' , NotFound::class)->addTag ('cache.pool ' );
6968
7069 $ pass = new CachePoolPrunerPass ();
0 commit comments