mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fixed one test.
This commit is contained in:
parent
822044820e
commit
c0c2aa3be0
@ -42,7 +42,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
Log::debug('Created new database.');
|
||||
touch($original);
|
||||
Artisan::call('migrate');
|
||||
copy($original, $copy);
|
||||
|
||||
|
||||
// create EUR currency
|
||||
/** @var TransactionCurrency $currency */
|
||||
@ -50,8 +50,11 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||
$currency->code = 'EUR';
|
||||
$currency->save();
|
||||
Log::debug('Created new EUR currency.');
|
||||
copy($original, $copy);
|
||||
} else {
|
||||
|
||||
if (file_exists($copy)) {
|
||||
Log::debug('Copied copy back over original.');
|
||||
copy($copy, $original);
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ class CurrencyRepositoryTest extends TestCase
|
||||
FactoryMuffin::create('FireflyIII\Models\TransactionCurrency');
|
||||
|
||||
$set = $this->object->get();
|
||||
$this->assertCount(2, $set);
|
||||
$this->assertCount(3, $set); // EUR is already present.
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user