File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/GoogleGtag Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,7 @@ public function getOrdersTrackingData(): array
159
159
'value ' => number_format ((float ) $ order ->getGrandTotal (), 2 ),
160
160
'tax ' => number_format ((float ) $ order ->getTaxAmount (), 2 ),
161
161
'shipping ' => number_format ((float ) $ order ->getShippingAmount (), 2 ),
162
+ 'currency ' => $ order ->getOrderCurrencyCode (),
162
163
];
163
164
$ result ['currency ' ] = $ order ->getOrderCurrencyCode ();
164
165
}
Original file line number Diff line number Diff line change @@ -166,7 +166,8 @@ public function testOrderTrackingData()
166
166
'affiliation ' => 'test ' ,
167
167
'value ' => 10.00 ,
168
168
'tax ' => 2.00 ,
169
- 'shipping ' => 1.00
169
+ 'shipping ' => 1.00 ,
170
+ 'currency ' => 'USD '
170
171
]
171
172
],
172
173
'products ' => [
@@ -223,7 +224,7 @@ protected function createOrderMock($orderItemCount = 1)
223
224
$ orderMock ->expects ($ this ->once ())->method ('getGrandTotal ' )->willReturn (10 );
224
225
$ orderMock ->expects ($ this ->once ())->method ('getTaxAmount ' )->willReturn (2 );
225
226
$ orderMock ->expects ($ this ->once ())->method ('getShippingAmount ' )->willReturn ($ orderItemCount );
226
- $ orderMock ->expects ($ this ->once ( ))->method ('getOrderCurrencyCode ' )->willReturn ('USD ' );
227
+ $ orderMock ->expects ($ this ->exactly ( 2 ))->method ('getOrderCurrencyCode ' )->willReturn ('USD ' );
227
228
return $ orderMock ;
228
229
}
229
230
You can’t perform that action at this time.
0 commit comments