Skip to content

Commit bb3f366

Browse files
committed
Use the correct argument in assertContainerBuilderServiceDecoration()
1 parent 5d2ef99 commit bb3f366

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

PhpUnit/AbstractContainerBuilderTestCase.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ final protected function assertContainerBuilderServiceDecoration(
240240
int $priority = 0,
241241
?int $invalidBehavior = null
242242
): void {
243-
$definition = $this->container->findDefinition($serviceId);
244-
245-
self::assertThat($definition, new DefinitionDecoratesConstraint($serviceId, $decoratedServiceId, $renamedId, $priority, $invalidBehavior));
243+
self::assertThat($this->container, new DefinitionDecoratesConstraint($serviceId, $decoratedServiceId, $renamedId, $priority, $invalidBehavior));
246244
}
247245
}

0 commit comments

Comments
 (0)