mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix tests.
This commit is contained in:
parent
db020db34b
commit
a0f34a7ce1
@ -264,8 +264,11 @@ class AmountSupportTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testGetCurrencySymbol()
|
public function testGetCurrencySymbol()
|
||||||
{
|
{
|
||||||
|
// will the the euro:
|
||||||
|
$eur = TransactionCurrency::whereCode('EUR')->first();
|
||||||
|
|
||||||
$result = $this->object->getCurrencySymbol();
|
$result = $this->object->getCurrencySymbol();
|
||||||
$this->assertEquals('Xi', $result);
|
$this->assertEquals($eur->symbol, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -273,8 +276,11 @@ class AmountSupportTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testGetDefaultCurrency()
|
public function testGetDefaultCurrency()
|
||||||
{
|
{
|
||||||
$result = $this->object->getCurrencySymbol();
|
// will the the euro:
|
||||||
$this->assertEquals('Xi', $result);
|
$eur = TransactionCurrency::whereCode('EUR')->first();
|
||||||
|
|
||||||
|
$result = $this->object->getDefaultCurrency();
|
||||||
|
$this->assertEquals($eur->id, $result->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user