new MessengerPass())->
process($container);
$this->
assertFalse($container->
hasDefinition('messenger.middleware.debug.logging'
));
$handlersLocatorDefinition =
$container->
getDefinition($busId.'.messenger.handlers_locator'
);
$this->
assertSame(HandlersLocator::
class,
$handlersLocatorDefinition->
getClass());
$handlerDescriptionMapping =
$handlersLocatorDefinition->
getArgument(0
);
$this->
assertCount(2,
$handlerDescriptionMapping);
$this->
assertHandlerDescriptor($container,
$handlerDescriptionMapping, DummyMessage::
class,
[DummyHandler::
class]);
$this->
assertHandlerDescriptor($container,
$handlerDescriptionMapping, SecondMessage::
class,
[MissingArgumentTypeHandler::
class]);
$this->
assertEquals( [DummyReceiver::
class => new Reference(DummyReceiver::
class)],
$container->
getDefinition('messenger.receiver_locator'
)->
getArgument(0
) );
} public function testFromTransportViaTagAttribute() { $container =
$this->
getContainerBuilder($busId = 'message_bus'
);