Skip to content

Commit 622ca5f

Browse files
committed
Fixes unit tests after services rename
1 parent b14bdef commit 622ca5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/DependencyInjection/CompilerPass/TaggedEnumCollectorCompilerPassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testCollectEnums(): void
4040
$compiler = $this->prophesize(ContainerBuilder::class);
4141
$compiler->hasDefinition('yokai_enum.enum_registry')->shouldBeCalled()->willReturn(true);
4242
$compiler->getDefinition('yokai_enum.enum_registry')->shouldBeCalled()->willReturn($registry);
43-
$compiler->findTaggedServiceIds('enum')->shouldBeCalled()->willReturn([
43+
$compiler->findTaggedServiceIds('yokai_enum.enum')->shouldBeCalled()->willReturn([
4444
'enum.gender' => $this->prophesize(Definition::class)->reveal(),
4545
'enum.type' => $this->prophesize(Definition::class)->reveal(),
4646
]);

tests/DependencyInjection/EnumExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function it_register_services(): void
3838

3939
$autoconfigure = $container->getAutoconfiguredInstanceof();
4040
$this->assertArrayHasKey(EnumInterface::class, $autoconfigure);
41-
$this->assertEquals(['enum' => [[]]], $autoconfigure[EnumInterface::class]->getTags());
41+
$this->assertEquals(['yokai_enum.enum' => [[]]], $autoconfigure[EnumInterface::class]->getTags());
4242

4343
$this->assertTrue($container->hasAlias(EnumRegistry::class));
4444
}

0 commit comments

Comments
 (0)