Skip to content

Commit 564e139

Browse files
committed
MCP-826: Use RabbitMQ for all consumers if AMQP is set in deployment config
1 parent d8d6707 commit 564e139

File tree

1 file changed

+8
-0
lines changed
  • dev/tests/integration/testsuite/Magento/ImportExport/Model/Export

1 file changed

+8
-0
lines changed

dev/tests/integration/testsuite/Magento/ImportExport/Model/Export/ConsumerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
namespace Magento\ImportExport\Model\Export;
99

1010
use Magento\Catalog\Api\Data\ProductInterface;
11+
use Magento\Framework\App\DeploymentConfig;
1112
use Magento\Framework\App\Filesystem\DirectoryList;
1213
use Magento\Framework\Filesystem;
1314
use Magento\Framework\Filesystem\Directory\WriteInterface;
@@ -45,6 +46,11 @@ class ConsumerTest extends TestCase
4546
/** @var string */
4647
private $filePath;
4748

49+
/**
50+
* @var DeploymentConfig|null
51+
*/
52+
private $deploymentConfig;
53+
4854
/**
4955
* @inheritdoc
5056
*/
@@ -58,6 +64,7 @@ protected function setUp(): void
5864
$this->consumer = $this->objectManager->get(Consumer::class);
5965
$filesystem = $this->objectManager->get(Filesystem::class);
6066
$this->directory = $filesystem->getDirectoryWrite(DirectoryList::VAR_IMPORT_EXPORT);
67+
$this->deploymentConfig = $this->objectManager->get(DeploymentConfig::class);
6168
}
6269

6370
/**
@@ -82,6 +89,7 @@ protected function tearDown(): void
8289
*/
8390
public function testProcess(): void
8491
{
92+
$this->objectManager->get('Psr\Log\LoggerInterface')->info('Amqp config ' . implode(" ", $this->deploymentConfig->get('queue/amqp')));
8593
$envelope = $this->queue->dequeue();
8694
$decodedMessage = $this->messageEncoder->decode('import_export.export', $envelope->getBody());
8795
$this->consumer->process($decodedMessage);

0 commit comments

Comments
 (0)