mirror of
https://github.com/opdavies/glassboxx-sdk-php.git
synced 2025-02-17 22:50:48 +00:00
Use a decimal float price to ensure that works
This commit is contained in:
parent
f2478e62a4
commit
73160563b3
|
@ -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',
|
||||
],
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue