'security.token_storage' => '?Symfony\\Component\\Security\\Core\\Authentication\\Token\\Storage\\TokenStorageInterface',
'security.csrf.token_manager' => '?Symfony\\Component\\Security\\Csrf\\CsrfTokenManagerInterface',
'web_link.http_header_serializer' => '?Symfony\\Component\\WebLink\\HttpHeaderSerializer',
];
$this->
assertEquals($expectedServices,
$subscribed, 'Subscribed core services in AbstractController have changed'
);
} public function testGetParameter() { $container =
new Container(new FrozenParameterBag(['foo' => 'bar'
]));
$container->
set('parameter_bag',
new ContainerBag($container));
$controller =
$this->
createController();
$controller->
setContainer($container);
$this->
assertSame('bar',
$controller->
getParameter('foo'
));
} public function testMissingParameterBag() { $this->
expectException(ServiceNotFoundException::
class);
$this->
expectExceptionMessage('TestAbstractController::getParameter()" method is missing a parameter bag'
);