File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
app/code/Magento/ConfigurableProductGraphQl/Test/Unit/Model/Cart/BuyRequest Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 16
16
use Magento \Framework \EntityManager \EntityMetadataInterface ;
17
17
use Magento \Framework \EntityManager \MetadataPool ;
18
18
use Magento \Framework \Stdlib \ArrayManager ;
19
+ use Magento \Framework \Stdlib \ArrayManagerFactory ;
19
20
use Magento \Quote \Model \Quote ;
20
21
use Magento \Store \Model \Store ;
21
22
use PHPUnit \Framework \MockObject \MockObject ;
@@ -66,13 +67,15 @@ protected function setUp(): void
66
67
$ this ->optionCollection = $ this ->createMock (OptionCollection::class);
67
68
$ this ->metadataPool = $ this ->createMock (MetadataPool::class);
68
69
$ this ->stockState = $ this ->createMock (StockStateInterface::class);
69
-
70
+ $ arrayManagerFactory = $ this ->createMock (ArrayManagerFactory::class);
71
+ $ arrayManagerFactory ->method ('create ' )->willReturn ($ this ->arrayManager );
70
72
$ this ->superAttributeDataProvider = new SuperAttributeDataProvider (
71
73
$ this ->arrayManager ,
72
74
$ this ->productRepository ,
73
75
$ this ->optionCollection ,
74
76
$ this ->metadataPool ,
75
- $ this ->stockState
77
+ $ this ->stockState ,
78
+ $ arrayManagerFactory ,
76
79
);
77
80
}
78
81
@@ -150,7 +153,6 @@ public function testExecute(): void
150
153
'values ' => [['value_index ' => 1 ]],
151
154
]
152
155
]);
153
-
154
156
$ this ->assertEquals (['super_attribute ' => [1 => 1 ]], $ this ->superAttributeDataProvider ->execute ($ cartItemData ));
155
157
}
156
158
}
You can’t perform that action at this time.
0 commit comments