Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cde9977

Browse files
committed
bug #27134 [Cache] Fix service id in test
1 parent dac892a commit cde9977

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Compiler/CachePoolPrunerPassTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CachePoolPrunerPassTest extends TestCase
2424
public function testCompilerPassReplacesCommandArgument()
2525
{
2626
$container = new ContainerBuilder();
27-
$container->register('cache.command.pool_pruner')->addArgument(array());
27+
$container->register('console.command.cache_pool_prune')->addArgument(array());
2828
$container->register('pool.foo', FilesystemAdapter::class)->addTag('cache.pool');
2929
$container->register('pool.bar', PhpFilesAdapter::class)->addTag('cache.pool');
3030

@@ -35,7 +35,7 @@ public function testCompilerPassReplacesCommandArgument()
3535
'pool.foo' => new Reference('pool.foo'),
3636
'pool.bar' => new Reference('pool.bar'),
3737
);
38-
$argument = $container->getDefinition('cache.command.pool_pruner')->getArgument(0);
38+
$argument = $container->getDefinition('console.command.cache_pool_prune')->getArgument(0);
3939

4040
$this->assertInstanceOf(IteratorArgument::class, $argument);
4141
$this->assertEquals($expected, $argument->getValues());
@@ -63,7 +63,7 @@ public function testCompilePassIsIgnoredIfCommandDoesNotExist()
6363
public function testCompilerPassThrowsOnInvalidDefinitionClass()
6464
{
6565
$container = new ContainerBuilder();
66-
$container->register('cache.command.pool_pruner')->addArgument(array());
66+
$container->register('console.command.cache_pool_prune')->addArgument(array());
6767
$container->register('pool.not-found', NotFound::class)->addTag('cache.pool');
6868

6969
$pass = new CachePoolPrunerPass();

0 commit comments

Comments
 (0)