@@ -77,6 +77,8 @@ public function testGetSectionData()
77
77
$ imageLabel = 'image_label ' ;
78
78
$ imageWidth = 'image_width ' ;
79
79
$ imageHeight = 'image_height ' ;
80
+ $ productSku = 'product_sku ' ;
81
+ $ productId = 'product_id ' ;
80
82
$ productUrl = 'product_url ' ;
81
83
$ productName = 'product_name ' ;
82
84
$ productPrice = 'product_price ' ;
@@ -97,6 +99,8 @@ public function testGetSectionData()
97
99
'width ' => $ imageWidth ,
98
100
'height ' => $ imageHeight ,
99
101
],
102
+ 'product_sku ' => $ productSku ,
103
+ 'product_id ' => $ productId ,
100
104
'product_url ' => $ productUrl ,
101
105
'product_name ' => $ productName ,
102
106
'product_price ' => $ productPrice ,
@@ -186,6 +190,12 @@ public function testGetSectionData()
186
190
->with ($ itemMock , [])
187
191
->willReturn ($ productUrl );
188
192
193
+ $ productMock ->expects ($ this ->once ())
194
+ ->method ('getSku ' )
195
+ ->willReturn ($ productSku );
196
+ $ productMock ->expects ($ this ->once ())
197
+ ->method ('getId ' )
198
+ ->willReturn ($ productId );
189
199
$ productMock ->expects ($ this ->once ())
190
200
->method ('getName ' )
191
201
->willReturn ($ productName );
@@ -246,6 +256,8 @@ public function testGetSectionDataWithTwoItems()
246
256
$ imageLabel = 'image_label ' ;
247
257
$ imageWidth = 'image_width ' ;
248
258
$ imageHeight = 'image_height ' ;
259
+ $ productSku = 'product_sku ' ;
260
+ $ productId = 'product_id ' ;
249
261
$ productUrl = 'product_url ' ;
250
262
$ productName = 'product_name ' ;
251
263
$ productPrice = 'product_price ' ;
@@ -272,6 +284,8 @@ public function testGetSectionDataWithTwoItems()
272
284
'width ' => $ imageWidth ,
273
285
'height ' => $ imageHeight ,
274
286
],
287
+ 'product_sku ' => $ productSku ,
288
+ 'product_id ' => $ productId ,
275
289
'product_url ' => $ productUrl ,
276
290
'product_name ' => $ productName ,
277
291
'product_price ' => $ productPrice ,
@@ -288,6 +302,8 @@ public function testGetSectionDataWithTwoItems()
288
302
'width ' => $ imageWidth ,
289
303
'height ' => $ imageHeight ,
290
304
],
305
+ 'product_sku ' => $ productSku ,
306
+ 'product_id ' => $ productId ,
291
307
'product_url ' => $ productUrl ,
292
308
'product_name ' => $ productName ,
293
309
'product_price ' => $ productPrice ,
@@ -375,6 +391,14 @@ public function testGetSectionDataWithTwoItems()
375
391
->method ('getName ' )
376
392
->willReturn ($ productName );
377
393
394
+ $ productMock ->expects ($ this ->exactly (2 ))
395
+ ->method ('getId ' )
396
+ ->willReturn ($ productId );
397
+
398
+ $ productMock ->expects ($ this ->exactly (2 ))
399
+ ->method ('getSku ' )
400
+ ->willReturn ($ productSku );
401
+
378
402
$ this ->sidebarMock ->expects ($ this ->exactly (2 ))
379
403
->method ('getProductPriceHtml ' )
380
404
->with (
0 commit comments