Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Cleanup test case.
James Coleaef2075c8e7f
diff --git a/tests/TestCase.php b/tests/TestCase.phpindex 8b972b79d0..c5f2c8b4ad 100644--- a/tests/TestCase.php+++ b/tests/TestCase.php@@ -33,40 +33,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase{parent::setUp();- // if the database copy does not exist, call migrate.- $copy = __DIR__ . '/../storage/database/testing-copy.db';- $original = __DIR__ . '/../storage/database/testing.db';-- FactoryMuffin::loadFactories(__DIR__ . '/factories');-- if (!file_exists($copy)) {- touch($original);- Artisan::call('migrate');--- // create EUR currency- /** @var TransactionCurrency $currency */- $currency = FactoryMuffin::create('FireflyIII\Models\TransactionCurrency');- $currency->code = 'EUR';- $currency->save();- copy($original, $copy);- } else {-- if (file_exists($copy)) {- copy($copy, $original);- }- }- // if the database copy does exists, copy back as original.-- $this->session(- [- 'start' => Carbon::now()->startOfMonth(),- 'end' => Carbon::now()->endOfMonth(),- 'first' => Carbon::now()->startOfYear()- ]- );--}/**@@ -87,10 +53,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase{parent::tearDown();- // delete copy original.- //$original = __DIR__.'/../storage/database/testing.db';- //unlink($original);-}/**