From a0f34a7ce1fac4d2c44eab7c5272ee3bd28508cc Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 6 Jun 2015 16:26:26 +0200 Subject: [PATCH] Fix tests. --- tests/support/AmountSupportTest.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/support/AmountSupportTest.php b/tests/support/AmountSupportTest.php index 9100965109..66c4882cc7 100644 --- a/tests/support/AmountSupportTest.php +++ b/tests/support/AmountSupportTest.php @@ -264,8 +264,11 @@ class AmountSupportTest extends TestCase */ public function testGetCurrencySymbol() { + // will the the euro: + $eur = TransactionCurrency::whereCode('EUR')->first(); + $result = $this->object->getCurrencySymbol(); - $this->assertEquals('Xi', $result); + $this->assertEquals($eur->symbol, $result); } /** @@ -273,8 +276,11 @@ class AmountSupportTest extends TestCase */ public function testGetDefaultCurrency() { - $result = $this->object->getCurrencySymbol(); - $this->assertEquals('Xi', $result); + // will the the euro: + $eur = TransactionCurrency::whereCode('EUR')->first(); + + $result = $this->object->getDefaultCurrency(); + $this->assertEquals($eur->id, $result->id); }