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

@ -26,7 +26,7 @@ final class OrderRequestTest extends TestCase
'duration_for_loan' => 0,
'hostname' => 123,
'original_order_number' => 'abc123',
'price_incl_tax' => 100,
'price_incl_tax' => 7.99,
'sku' => 'this-is-the-first-sku',
'type_of_interaction' => 'purchase',
],

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;