File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
lib/internal/Magento/Framework/MessageQueue/Test/Unit Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,11 @@ class ConsumerTest extends \PHPUnit\Framework\TestCase
77
77
*/
78
78
private $ poisonPillCompare ;
79
79
80
+ /**
81
+ * @var \Magento\Framework\App\DeploymentConfig|\PHPUnit_Framework_MockObject_MockObject
82
+ */
83
+ private $ deploymentConfig ;
84
+
80
85
/**
81
86
* Set up.
82
87
*
@@ -95,6 +100,7 @@ protected function setUp()
95
100
->disableOriginalConstructor ()->getMock ();
96
101
$ this ->logger = $ this ->getMockBuilder (\Psr \Log \LoggerInterface::class)
97
102
->disableOriginalConstructor ()->getMock ();
103
+ $ this ->deploymentConfig = $ this ->createMock (\Magento \Framework \App \DeploymentConfig::class);
98
104
99
105
$ objectManager = new \Magento \Framework \TestFramework \Unit \Helper \ObjectManager ($ this );
100
106
$ this ->poisonPillCompare = $ this ->getMockBuilder (PoisonPillCompareInterface::class)
@@ -104,7 +110,8 @@ protected function setUp()
104
110
//Hard dependency used because CallbackInvoker invokes closure logic defined inside of Customer class.
105
111
$ this ->callbackInvoker = new \Magento \Framework \MessageQueue \CallbackInvoker (
106
112
$ this ->poisonPillRead ,
107
- $ this ->poisonPillCompare
113
+ $ this ->poisonPillCompare ,
114
+ $ this ->deploymentConfig
108
115
);
109
116
$ this ->consumer = $ objectManager ->getObject (
110
117
\Magento \Framework \MessageQueue \Consumer::class,
You can’t perform that action at this time.
0 commit comments