8000 Change test to a full change guard against additions as well · symfony/symfony@6d5b815 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d5b815

Browse files
committed
Change test to a full change guard against additions as well
1 parent d2bcaa3 commit 6d5b815

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/Controller/AbstractControllerTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,13 @@ public function testSubscribedServices()
4141
'twig' => '?Twig\\Environment',
4242
'doctrine' => '?Doctrine\\Common\\Persistence\\ManagerRegistry',
4343
'form.factory' => '?Symfony\\Component\\Form\\FormFactoryInterface',
44-
'security.token_storage' => '?Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface',
45-
'security.csrf.token_manager' => '?Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface',
4644
'parameter_bag' => '?Symfony\\Component\\DependencyInjection\\ParameterBag\\ContainerBagInterface',
4745
'message_bus' => '?Symfony\\Component\\Messenger\\MessageBusInterface',
46+
'security.token_storage' => '?Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface',
47+
'security.csrf.token_manager' => '?Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface',
4848
);
4949

50-
foreach ($expectedServices as $id => $reference) {
51-
$this->assertSame($reference, $subscribed[$id]);
52-
}
50+
$this->assertEquals($expectedServices, $subscribed, 'Subscribed core services in AbstractController have changed');
5351
}
5452< 409A code class="diff-text syntax-highlighted-line">

5553
public function testGetParameter()

0 commit comments

Comments
 (0)
0