diff --git a/tests/Feature/Controllers/CurrencyControllerTest.php b/tests/Feature/Controllers/CurrencyControllerTest.php
index ba1dd0fe00..d893613068 100644
--- a/tests/Feature/Controllers/CurrencyControllerTest.php
+++ b/tests/Feature/Controllers/CurrencyControllerTest.php
@@ -194,7 +194,7 @@ class CurrencyControllerTest extends TestCase
$userRepos->shouldReceive('hasRole')->once()->andReturn(true);
$this->be($this->user());
- $response = $this->get(route('currencies.edit', [2]));
+ $response = $this->get(route('currencies.edit', [1]));
$response->assertStatus(200);
// has bread crumb
$response->assertSee('
');
@@ -211,10 +211,10 @@ class CurrencyControllerTest extends TestCase
$journalRepos = $this->mock(JournalRepositoryInterface::class);
$userRepos = $this->mock(UserRepositoryInterface::class);
- $currencies = factory(TransactionCurrency::class, 3)->make();
+ $currencies = TransactionCurrency::get();
$journalRepos->shouldReceive('first')->once()->andReturn(new TransactionJournal);
- $repository->shouldReceive('getCurrencyByPreference')->andReturn(new TransactionCurrency);
+ $repository->shouldReceive('getCurrencyByPreference')->andReturn($currencies->first());
$repository->shouldReceive('get')->andReturn($currencies);
$userRepos->shouldReceive('hasRole')->once()->andReturn(true);