Fixed one test.

This commit is contained in:
James Cole 2015-05-10 08:49:15 +02:00
parent 822044820e
commit c0c2aa3be0
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}
}

View File

@ -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.
}
/**