$this->
assertFalse($container->
getDefinition('webhook.transport'
)->
hasErrors());
$this->
assertTrue($container->
getDefinition('webhook.body_configurator.json'
)->
hasErrors());
$this->
assertSame( ['You cannot use the "webhook transport" service since the Serializer component is not enabled. Try setting "framework.serializer.enabled" to true.'
],
$container->
getDefinition('webhook.body_configurator.json'
)->
getErrors() );
} protected function createContainer(array
$data =
[]) { return new ContainerBuilder(new EnvPlaceholderParameterBag(array_merge([ 'kernel.bundles' =>
['FrameworkBundle' => FrameworkBundle::
class],
'kernel.bundles_metadata' =>
['FrameworkBundle' =>
['namespace' => 'Symfony\\Bundle\\FrameworkBundle', 'path' => __DIR__.'/../..'
]],
'kernel.cache_dir' => __DIR__,
'kernel.build_dir' => __DIR__,
'kernel.project_dir' => __DIR__,
'kernel.debug' => false,
'kernel.environment' => 'test',
'kernel.name' => 'kernel',
'kernel.container_class' => 'testContainer',
'container.build_hash' => 'Abc1234',
'container.build_id' =>
hash('crc32', 'Abc123423456789'
),