Skip to content

Commit

Permalink
Fix mock test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Dec 10, 2024
1 parent 1f2dc99 commit 73f2a96
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Unit/DependencyInjection/Compiler/MappingPassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\DependencyInjection\Alias;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;

/**
* Unit tests for MappingPass.
Expand Down Expand Up @@ -85,6 +86,9 @@ function ($parameter) use ($managers) {
)
);

$containerMock->expects($this->exactly(1))->method('getParameterBag')
->willReturn(new ParameterBag());

$containerMock->expects($this->once())->method('get')->with($this->anything())
->will(
$this->returnCallback(
Expand Down

0 comments on commit 73f2a96

Please sign in to comment.