$this->
assertNode('enable', BooleanNodeDefinition::
class,
$rootNode->
find('social_media_channels.instagram.enable'
));
$this->
assertNode('accounts', ArrayNodeDefinition::
class,
$rootNode->
find('social_media_channels.instagram.accounts'
));
$this->
assertNode('enable', BooleanNodeDefinition::
class,
$mailerNode->
find('enable'
));
$this->
assertNode('transports', ArrayNodeDefinition::
class,
$mailerNode->
find('transports'
));
} public function testFindShouldWorkProperlyForNonDefaultPathSeparator() { $rootNode =
new ArrayNodeDefinition('root'
);
$rootNode ->
setPathSeparator('.|'
) ->
children() ->
arrayNode('mailer.configuration'
) ->
children() ->
booleanNode('enable'
)->
end() ->
arrayNode('transports'
)->
end() ->
end() ->
end() ;
$this->
assertNode('mailer.configuration', ArrayNodeDefinition::
class,
$rootNode->
find('mailer.configuration'
));
$this->
assertNode('enable', BooleanNodeDefinition::
class,
$rootNode->
find('mailer.configuration.|enable'
));