@@ -24,7 +24,7 @@ class CachePoolPrunerPassTest extends TestCase
24
24
public function testCompilerPassReplacesCommandArgument ()
25
25
{
26
26
$ container = new ContainerBuilder ();
27
- $ container ->register ('cache .command.pool_pruner ' )->addArgument (array ());
27
+ $ container ->register ('console .command.cache_pool_prune ' )->addArgument (array ());
28
28
$ container ->register ('pool.foo ' , FilesystemAdapter::class)->addTag ('cache.pool ' );
29
29
$ container ->register ('pool.bar ' , PhpFilesAdapter::class)->addTag ('cache.pool ' );
30
30
@@ -35,7 +35,7 @@ public function testCompilerPassReplacesCommandArgument()
35
35
'pool.foo ' => new Reference ('pool.foo ' ),
36
36
'pool.bar ' => new Reference ('pool.bar ' ),
37
37
);
38
- $ argument = $ container ->getDefinition ('cache .command.pool_pruner ' )->getArgument (0 );
38
+ $ argument = $ container ->getDefinition ('console .command.cache_pool_prune ' )->getArgument (0 );
39
39
40
40
$ this ->assertInstanceOf (IteratorArgument::class, $ argument );
41
41
$ this ->assertEquals ($ expected , $ argument ->getValues ());
@@ -63,7 +63,7 @@ public function testCompilePassIsIgnoredIfCommandDoesNotExist()
63
63
public function testCompilerPassThrowsOnInvalidDefinitionClass ()
64
64
{
65
65
$ container = new ContainerBuilder ();
66
- $ container ->register ('cache .command.pool_pruner ' )->addArgument (array ());
66
+ $ container ->register ('console .command.cache_pool_prune ' )->addArgument (array ());
67
67
$ container ->register ('pool.not-found ' , NotFound::class)->addTag ('cache.pool ' );
68
68
69
69
$ pass = new CachePoolPrunerPass ();
0 commit comments