use Symfony\Component\Messenger\WorkerMetadata;
/**
* @author Oleg Krasavin <okwinza@gmail.com>
*/
class WorkerMetadataTest extends TestCase
{ public function testItReturnsDefaultValuesIfNoneProvided() { $metadata =
new WorkerMetadata([]);
$this->
assertNull($metadata->
getQueueNames());
$this->
assertSame([],
$metadata->
getTransportNames());
} public function testItReturnsProvidedMetadata() { $data =
[ 'queueNames' =>
['c', 'b', 'a'
],
'transportNames' =>
['a', 'b', 'c'
],
];
$metadata =
new WorkerMetadata($data);