1
0
mirror of synced 2024-11-24 22:06:06 +03:00
service-bundle/Tests/Messenger/MessageHandlerTest.php
Кривич Сергей 897df39d96 Update code base
2022-07-20 14:38:42 +03:00

22 lines
618 B
PHP

<?php
namespace RetailCrm\ServiceBundle\Tests\Messenger;
use PHPUnit\Framework\TestCase;
use RetailCrm\ServiceBundle\Messenger\CommandMessage;
use RetailCrm\ServiceBundle\Messenger\MessageHandler;
use RetailCrm\ServiceBundle\Messenger\MessageHandler\JobRunner;
class MessageHandlerTest extends TestCase
{
public function testRun(): void
{
$runner = $this->createMock(JobRunner::class);
$runner->expects(static::once())->method('run');
$message = $this->createMock(CommandMessage::class);
$handler = new MessageHandler($runner);
$handler->__invoke($message);
}
}