File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
dev/tests/integration/testsuite/Magento/Framework/MessageQueue/UseCase Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ namespace Magento \Framework \MessageQueue \UseCase ;
7
+
8
+ use Magento \Framework \App \DeploymentConfig \FileReader ;
9
+ use Magento \Framework \Config \File \ConfigFilePool ;
10
+
11
+ class WaitAndNotWaitMessagesTest extends QueueTestCaseAbstract
12
+ {
13
+ /**
14
+ * @var FileReader
15
+ */
16
+ private $ reader ;
17
+
18
+ /**
19
+ * @var array
20
+ */
21
+ private $ config ;
22
+
23
+ /**
24
+ * @inheritdoc
25
+ */
26
+ protected function setUp ()
27
+ {
28
+ parent ::setUp ();
29
+ $ this ->reader = $ this ->objectManager ->get (FileReader::class);
30
+
31
+ $ this ->config = $ this ->loadConfig ();
32
+ }
33
+
34
+ public function testDefaultConfiguration ()
35
+ {
36
+ $ this ->assertArraySubset (['queue ' => ['consumers_wait_for_messages ' => 1 ]], $ this ->config );
37
+ }
38
+
39
+ /**
40
+ * @return array
41
+ */
42
+ private function loadConfig (): array
43
+ {
44
+ return $ this ->reader ->load (ConfigFilePool::APP_ENV );
45
+ }
46
+ }
You can’t perform that action at this time.
0 commit comments