From aebefe8bcf98fbc8650ad6ef5da66b2a6f4007ea Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 27 Jan 2019 07:48:57 +0100 Subject: [PATCH] Fix currency mapper test --- .../Unit/Support/Import/Routine/File/CurrencyMapperTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/Unit/Support/Import/Routine/File/CurrencyMapperTest.php b/tests/Unit/Support/Import/Routine/File/CurrencyMapperTest.php index c512b1b30f..0733b109a9 100644 --- a/tests/Unit/Support/Import/Routine/File/CurrencyMapperTest.php +++ b/tests/Unit/Support/Import/Routine/File/CurrencyMapperTest.php @@ -27,8 +27,8 @@ namespace Tests\Unit\Support\Import\Routine\File; use FireflyIII\Models\TransactionCurrency; use FireflyIII\Repositories\Currency\CurrencyRepositoryInterface; use FireflyIII\Support\Import\Routine\File\CurrencyMapper; -use Tests\TestCase; use Log; +use Tests\TestCase; /** * Class CurrencyMapperTest @@ -111,13 +111,13 @@ class CurrencyMapperTest extends TestCase // nothing found, mapper will try to create it. $repository->shouldReceive('store') - ->withArgs([['code' => $currency->code, 'name' => $currency->name, 'symbol' => $currency->symbol, 'decimal_places' => 2]]) + ->withArgs([['code' => $currency->code, 'name' => $currency->name, 'symbol' => $currency->symbol, 'enabled' => true, 'decimal_places' => 2]]) ->once()->andReturn($currency); $mapper = new CurrencyMapper(); $mapper->setUser($this->user()); - $result = $mapper->map(null, ['name' => $currency->name, 'code' => $currency->code, 'symbol' => $currency->symbol]); + $result = $mapper->map(null, ['name' => $currency->name, 'code' => $currency->code, 'enabled' => true, 'symbol' => $currency->symbol]); $this->assertEquals($currency->id, $result->id); }