@@ -57,6 +57,11 @@ class ConfigurationTest extends TestCase
57
57
*/
58
58
private $ serializer ;
59
59
60
+ /**
61
+ * @var \Magento\Catalog\Helper\Data|MockObject
62
+ */
63
+ private $ catalogHelper ;
64
+
60
65
/**
61
66
* @inheritDoc
62
67
*/
@@ -72,6 +77,7 @@ protected function setUp(): void
72
77
$ this ->serializer = $ this ->getMockBuilder (Json::class)
73
78
->onlyMethods (['unserialize ' ])
74
79
->getMockForAbstractClass ();
80
+ $ this ->catalogHelper = $ this ->createPartialMock (\Magento \Catalog \Helper \Data::class, ['getTaxPrice ' ]);
75
81
76
82
$ this ->serializer ->expects ($ this ->any ())
77
83
->method ('unserialize ' )
@@ -87,7 +93,8 @@ function ($value) {
87
93
'pricingHelper ' => $ this ->pricingHelper ,
88
94
'productConfiguration ' => $ this ->productConfiguration ,
89
95
'escaper ' => $ this ->escaper ,
90
- 'serializer ' => $ this ->serializer
96
+ 'serializer ' => $ this ->serializer ,
97
+ 'catalogHelper ' => $ this ->catalogHelper
91
98
]
92
99
);
93
100
}
@@ -149,7 +156,8 @@ public function testGetSelectionFinalPrice(): void
149
156
$ price ->expects ($ this ->once ())->method ('getSelectionFinalTotalPrice ' )
150
157
->with ($ product , $ selectionProduct , $ itemQty , 0 , false , true );
151
158
152
- $ this ->helper ->getSelectionFinalPrice ($ this ->item , $ selectionProduct );
159
+ $ selectionPrice = $ this ->helper ->getSelectionFinalPrice ($ this ->item , $ selectionProduct );
160
+ $ this ->catalogHelper ->getTaxPrice ($ selectionProduct , $ selectionPrice );
153
161
}
154
162
155
163
/**
0 commit comments