fix(tests): use assertEqualsWithDelta() when checking currency rate
it is stored as a real (float) value, so needs a delta comparison
This commit is contained in:
parent
e9f040d1c6
commit
af4fd62b55
|
|
@ -23,7 +23,7 @@ class CurrencyTest extends Base
|
|||
$currencies = $currencyModel->getAll();
|
||||
$this->assertCount(1, $currencies);
|
||||
$this->assertEquals('USD', $currencies[0]['currency']);
|
||||
$this->assertEquals(9.9, $currencies[0]['rate']);
|
||||
$this->assertEqualsWithDelta(9.9, $currencies[0]['rate'], 0.0001);
|
||||
}
|
||||
|
||||
public function testCreate()
|
||||
|
|
|
|||
Loading…
Reference in New Issue