Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MultipleTopicsPerQueueTest.php
Go to the documentation of this file.
1 <?php
7 
9 {
13  protected $consumers = [
14  'queue.for.multiple.topics.test.a',
15  'queue.for.multiple.topics.test.b'
16  ];
17 
25  {
26  foreach (['multi.topic.queue.topic.a', 'multi.topic.queue.topic.b'] as $topic) {
27  $input = "Input value for topic '{$topic}'";
28  $response = $this->publisher->publish($topic, $input);
29  $this->assertEquals($input . ' processed by RPC handler', $response);
30  }
31  }
32 }
$response
Definition: 404.php:11