forked from GNUsocial/gnu-social
[TESTS][Queue] Add @codeCoverageIgnore to select queueing functions
This commit is contained in:
parent
41e4e2de0e
commit
32ca61e214
@ -28,6 +28,11 @@ class Message
|
||||
public $content;
|
||||
public string $queue;
|
||||
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*
|
||||
* @param mixed $content
|
||||
*/
|
||||
public function __construct($content, string $queue)
|
||||
{
|
||||
$this->queue = $queue;
|
||||
|
@ -28,6 +28,9 @@ use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
|
||||
|
||||
class MessageHandler implements MessageHandlerInterface
|
||||
{
|
||||
/**
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function __invoke(Message $message)
|
||||
{
|
||||
Event::handle($message->queue, [$message->content]);
|
||||
|
Loading…
Reference in New Issue
Block a user