use Shopware\Core\Framework\MessageQueue\MessageQueueException;
/**
* @internal
*
* @covers \Shopware\Core\Framework\MessageQueue\MessageQueueException
*/
class MessageQueueExceptionTest extends TestCase
{ public function testValidReceiverNameNotProvided(): void
{ $exception = MessageQueueException::
validReceiverNameNotProvided();
static::
assertSame('FRAMEWORK__NO_VALID_RECEIVER_NAME_PROVIDED',
$exception->
getErrorCode());
static::
assertSame('No receiver name provided.',
$exception->
getMessage());
static::
assertSame(400,
$exception->
getStatusCode());
} public function testWorkerIsLocked(): void
{ $exception = MessageQueueException::
workerIsLocked('test'
);
static::
assertSame('FRAMEWORK__WORKER_IS_LOCKED',
$exception->
getErrorCode());