@@ -103,6 +103,7 @@ public function testGetValue()
103
103
$ productMock = $ this ->getMockBuilder (Product::class)
104
104
->disableOriginalConstructor ()
105
105
->getMock ();
106
+
106
107
$ productMock ->expects ($ this ->once ())
107
108
->method ('getPriceInfo ' )
108
109
->willReturn ($ this ->priceInfoMock );
@@ -153,7 +154,8 @@ public function testGetValueWithNoCustomOption()
153
154
$ this ->assertEquals (100 , $ this ->model ->getValue ());
154
155
}
155
156
156
- public function testGetValueWithCustomOption () {
157
+ public function testGetValueWithCustomOption ()
158
+ {
157
159
$ priceValue = 10 ;
158
160
$ customOptionPrice = 5 ;
159
161
@@ -194,13 +196,13 @@ public function testGetValueWithCustomOption() {
194
196
$ productOptionMock = $ this ->getMockBuilder ('Magento\Catalog\Model\ResourceModel\Product\Option\Collection ' )
195
197
->disableOriginalConstructor ()
196
198
->addMethods (['getValues ' ])
197
- ->onlyMethods (['getIterator ' , ' getData ' ])
199
+ ->onlyMethods (['getIterator ' ])
198
200
->getMock ();
199
201
200
- $ productValMock = $ this ->getMockBuilder ('Magento\Catalog\Model\Product\Option\Value ' )
202
+ $ productValMock = $ this ->getMockBuilder ('Magento\Catalog\Model\ResourceModel\ Product\Option\Value\Collection ' )
201
203
->disableOriginalConstructor ()
202
- ->addMethods (['getIterator ' ])
203
- ->onlyMethods (['getPrice ' ])
204
+ ->addMethods (['getPrice ' ])
205
+ ->onlyMethods (['getIterator ' ])
204
206
->getMock ();
205
207
206
208
$ productMock ->expects ($ this ->atLeastOnce ())
0 commit comments