Use a decimal float price to ensure that works

This commit is contained in:
Oliver Davies 2020-06-05 21:00:56 +01:00
parent f2478e62a4
commit 73160563b3
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ class TestCase extends \PHPUnit\Framework\TestCase
$order->method('getCurrencyCode')->willReturn('GBP');
$order->method('getCustomer')->willReturn($this->getMockCustomer());
$order->method('getOrderNumber')->willReturn('abc123');
$order->method('getPrice')->willReturn((float) 100);
$order->method('getPrice')->willReturn(7.99);
$order->method('getSku')->willReturn('this-is-the-first-sku');
return $order;