[TESTS][Queue] Add @codeCoverageIgnore to select queueing functions

This commit is contained in:
Hugo Sales 2021-07-28 21:33:05 +00:00
parent 41e4e2de0e
commit 32ca61e214
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,11 @@ class Message
public $content; public $content;
public string $queue; public string $queue;
/**
* @codeCoverageIgnore
*
* @param mixed $content
*/
public function __construct($content, string $queue) public function __construct($content, string $queue)
{ {
$this->queue = $queue; $this->queue = $queue;

View File

@ -28,6 +28,9 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
class MessageHandler implements MessageHandlerInterface class MessageHandler implements MessageHandlerInterface
{ {
/**
* @codeCoverageIgnore
*/
public function __invoke(Message $message) public function __invoke(Message $message)
{ {
Event::handle($message->queue, [$message->content]); Event::handle($message->queue, [$message->content]);