Programming Language PHP
Namespace Oro\Component\MessageQueue\Client
Class MessagePriority
Method/Function getMessagePriorityName
Total Examples 2
2 code examples of PHP Oro\Component\MessageQueue\Client\MessagePriority::getMessagePriorityName extracted from open source projects
public function testGetUnknownMessagePriorityName(): void
{
$this->expectExceptionObject(
new \InvalidArgumentException(
'Unknown priority test, expected one of Very Low, Low, Normal, High, Very High'
)
);
MessagePriority::getMessagePriorityName('test');
}
private function getDefaultPriority(string $topicName): string
{
$priority = $this->topicRegistry->get($topicName)->getDefaultPriority(Config::DEFAULT_QUEUE_NAME);
return MessagePriority::getMessagePriorityName($priority);
}