File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
dev/tests/integration/testsuite/Magento/ImportExport/Model/Export Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 8
8
namespace Magento \ImportExport \Model \Export ;
9
9
10
10
use Magento \Catalog \Api \Data \ProductInterface ;
11
+ use Magento \Framework \App \DeploymentConfig ;
11
12
use Magento \Framework \App \Filesystem \DirectoryList ;
12
13
use Magento \Framework \Filesystem ;
13
14
use Magento \Framework \Filesystem \Directory \WriteInterface ;
@@ -45,6 +46,11 @@ class ConsumerTest extends TestCase
45
46
/** @var string */
46
47
private $ filePath ;
47
48
49
+ /**
50
+ * @var DeploymentConfig|null
51
+ */
52
+ private $ deploymentConfig ;
53
+
48
54
/**
49
55
* @inheritdoc
50
56
*/
@@ -58,6 +64,7 @@ protected function setUp(): void
58
64
$ this ->consumer = $ this ->objectManager ->get (Consumer::class);
59
65
$ filesystem = $ this ->objectManager ->get (Filesystem::class);
60
66
$ this ->directory = $ filesystem ->getDirectoryWrite (DirectoryList::VAR_IMPORT_EXPORT );
67
+ $ this ->deploymentConfig = $ this ->objectManager ->get (DeploymentConfig::class);
61
68
}
62
69
63
70
/**
@@ -82,6 +89,7 @@ protected function tearDown(): void
82
89
*/
83
90
public function testProcess (): void
84
91
{
92
+ $ this ->objectManager ->get ('Psr\Log\LoggerInterface ' )->info ('Amqp config ' . implode (" " , $ this ->deploymentConfig ->get ('queue/amqp ' )));
85
93
$ envelope = $ this ->queue ->dequeue ();
86
94
$ decodedMessage = $ this ->messageEncoder ->decode ('import_export.export ' , $ envelope ->getBody ());
87
95
$ this ->consumer ->process ($ decodedMessage );
You can’t perform that action at this time.
0 commit comments