Skip to content

Commit 2e2e3fc

Browse files
committed
Fix tests (Case 89286)
1 parent a9a1f65 commit 2e2e3fc

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Tests/DependencyInjection/Compiler/ShortcodeCompilerPassTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function setUp()
2929
}
3030

3131
/** @test */
32-
public function tagged_services_are_added_as_handlers_to_facade()
32+
public function tagged_services_are_added_as_handlers_to_handler_container()
3333
{
3434
$this->containerBuilder->expects($this->once())
3535
->method('findTaggedServiceIds')
@@ -42,24 +42,24 @@ public function tagged_services_are_added_as_handlers_to_facade()
4242
],
4343
]);
4444

45-
$mockedShortcodeFacade = $this->createMock(Definition::class);
46-
$mockedShortcodeFacade->expects($this->at(0))
45+
$mockedShortcodeHandlerContainer = $this->createMock(Definition::class);
46+
$mockedShortcodeHandlerContainer->expects($this->at(0))
4747
->method('addMethodCall')
48-
->with('addHandler', $this->callback(function (array $argument) {
48+
->with('add', $this->callback(function (array $argument) {
4949
return 'shortcode1' === $argument[0]
5050
&& $argument[1] instanceof Reference;
5151
}));
52-
$mockedShortcodeFacade->expects($this->at(1))
52+
$mockedShortcodeHandlerContainer->expects($this->at(1))
5353
->method('addMethodCall')
54-
->with('addHandler', $this->callback(function ($argument) {
54+
->with('add', $this->callback(function ($argument) {
5555
return 'shortcode2' === $argument[0]
5656
&& $argument[1] instanceof Reference;
5757
}));
5858

5959
$this->containerBuilder->expects($this->once())
6060
->method('findDefinition')
61-
->with('webfactory.shortcode.facade')
62-
->willReturn($mockedShortcodeFacade);
61+
->with('webfactory.shortcode.handler_container')
62+
->willReturn($mockedShortcodeHandlerContainer);
6363

6464
$this->compilerPass->process($this->containerBuilder);
6565
}
@@ -92,7 +92,7 @@ public function shortcode_guide_service_gets_configured_if_set()
9292

9393
$this->containerBuilder->expects($this->once())
9494
->method('findDefinition')
95-
->with('webfactory.shortcode.facade')
95+
->with('webfactory.shortcode.handler_container')
9696
->willReturn($this->createMock(Definition::class));
9797

9898
$this->containerBuilder->expects($this->once())

0 commit comments

Comments
 (0)