File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ private function setShippingAssignments(OrderInterface $order)
173
173
$ extensionAttributes = $ order ->getExtensionAttributes ();
174
174
175
175
if ($ extensionAttributes === null ) {
176
- $ extensionAttributes = $ this ->getOrderExtensionDependencyFactory ()->create ();
176
+ $ extensionAttributes = $ this ->getOrderExtensionFactory ()->create ();
177
177
} elseif ($ extensionAttributes ->getShippingAssignments () !== null ) {
178
178
return ;
179
179
}
@@ -185,11 +185,12 @@ private function setShippingAssignments(OrderInterface $order)
185
185
}
186
186
187
187
/**
188
- * Get the new OrderExtension dependency for application code
189
- * @return OrderExtension
188
+ * Get the new OrderExtensionFactory for application code
189
+ *
190
+ * @return OrderExtensionFactory
190
191
* @deprecated
191
192
*/
192
- private function getOrderExtensionDependencyFactory ()
193
+ private function getOrderExtensionFactory ()
193
194
{
194
195
if (!$ this ->orderExtensionFactory instanceof OrderExtensionFactory) {
195
196
$ this ->orderExtensionFactory = \Magento \Framework \App \ObjectManager::getInstance ()->get (
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function testGetList()
75
75
76
76
$ extensionAttributes = $ this ->getMock (
77
77
'\Magento\Sales\Api\Data\OrderExtension ' ,
78
- [],
78
+ [' getShippingAssignments ' ],
79
79
[],
80
80
'' ,
81
81
false
You can’t perform that action at this time.
0 commit comments