File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/GoogleGtag/Test/Unit/Block Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,11 @@ protected function setUp(): void
117
117
return $ value ;
118
118
});
119
119
120
+ $ escaper ->expects ($ this ->any ())
121
+ ->method ('escapeHtml ' )
122
+ ->withConsecutive ([__ ('sku0 ' )], [__ ('testName0 ' )], [__ ('test ' )])
123
+ ->willReturnOnConsecutiveCalls ('sku0 ' , 'testName0 ' , 'test ' );
124
+
120
125
$ this ->gaBlock = $ objectManager ->getObject (
121
126
Ga::class,
122
127
[
@@ -231,7 +236,7 @@ protected function createOrderMock($orderItemCount = 1)
231
236
$ orderMock ->expects ($ this ->once ())->method ('getGrandTotal ' )->willReturn (10 );
232
237
$ orderMock ->expects ($ this ->once ())->method ('getTaxAmount ' )->willReturn (2 );
233
238
$ orderMock ->expects ($ this ->once ())->method ('getShippingAmount ' )->willReturn ($ orderItemCount );
234
- $ orderMock ->expects ($ this ->exactly ( 2 ))->method ('getOrderCurrencyCode ' )->willReturn ('USD ' );
239
+ $ orderMock ->expects ($ this ->once ( ))->method ('getOrderCurrencyCode ' )->willReturn ('USD ' );
235
240
return $ orderMock ;
236
241
}
237
242
You can’t perform that action at this time.
0 commit comments