Fixed tests.

This commit is contained in:
James Cole
2015-05-16 16:04:51 +02:00
parent 66c2951594
commit c576902501
4 changed files with 29 additions and 158 deletions

View File

@@ -39,7 +39,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
FactoryMuffin::loadFactories(__DIR__ . '/factories');
if (!file_exists($copy)) {
Log::debug('Created new database.');
touch($original);
Artisan::call('migrate');
@@ -49,12 +48,10 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
$currency = FactoryMuffin::create('FireflyIII\Models\TransactionCurrency');
$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);
}
}