19 private $declaredExchanges;
28 $this->helper = new \Magento\TestFramework\Helper\Amqp();
29 $this->declaredExchanges = $this->helper->getExchanges();
39 $name = $expectedConfig[
'name'];
40 $this->assertArrayHasKey(
$name, $this->declaredExchanges);
41 unset($this->declaredExchanges[
$name][
'message_stats']);
44 $this->declaredExchanges[
$name],
45 'Invalid exchange configuration: ' .
$name 48 $bindings = $this->helper->getExchangeBindings(
$name);
49 $bindings = array_map(
function (
$value) {
50 unset(
$value[
'properties_key']);
56 'Invalid exchange bindings configuration: ' .
$name 67 'magento-topic-based-exchange1' => [
69 'name' =>
'magento-topic-based-exchange1',
73 'auto_delete' =>
false,
76 'alternate-exchange' =>
'magento-log-exchange' 81 'source' =>
'magento-topic-based-exchange1',
83 'destination' =>
'topic-queue1',
84 'destination_type' =>
'queue',
85 'routing_key' =>
'anotherTopic1',
87 'argument1' =>
'value' 92 'magento-topic-based-exchange2' => [
94 'name' =>
'magento-topic-based-exchange2',
98 'auto_delete' =>
false,
101 'alternate-exchange' =>
'magento-log-exchange',
102 'arrayValue' => [
'10',
'20']
107 'source' =>
'magento-topic-based-exchange2',
109 'destination' =>
'topic-queue2',
110 'destination_type' =>
'queue',
111 'routing_key' =>
'anotherTopic2',
113 'argument1' =>
'value',
115 'argument3' =>
'150',
120 'magento-topic-based-exchange3' => [
121 'exchangeConfig' => [
122 'name' =>
'magento-topic-based-exchange3',
126 'auto_delete' =>
true,
130 'bindingConfig' => [],
132 'magento-topic-based-exchange4' => [
133 'exchangeConfig' => [
134 'name' =>
'magento-topic-based-exchange4',
138 'auto_delete' =>
false,
144 'source' =>
'magento-topic-based-exchange4',
146 'destination' =>
'topic-queue1',
147 'destination_type' =>
'queue',
148 'routing_key' =>
'#',
154 'source' =>
'magento-topic-based-exchange4',
156 'destination' =>
'topic-queue2',
157 'destination_type' =>
'queue',
158 'routing_key' =>
'*.*.*',
testTopologyInstallation(array $expectedConfig, array $bindingConfig)
if(!isset($_GET['name'])) $name