Skip to content

Firefly III: a personal finances manager

Add heavy but working migrate routine. Will fix the tests but must be optimised. Also, should not be necessary.

James Cole36ec97428456
diff --git a/tests/TestCase.php b/tests/TestCase.php
index 00a3c124e7..e48d3208ae 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -19,6 +19,8 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app;
}
+
+
/**
* @param string $class
*
@@ -33,4 +35,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $mock;
}
+
+
}
diff --git a/tests/controllers/AccountControllerTest.php b/tests/controllers/AccountControllerTest.php
index ea9687accd..a6e7d76f43 100644
--- a/tests/controllers/AccountControllerTest.php
+++ b/tests/controllers/AccountControllerTest.php
@@ -1,7 +1,6 @@
<?php
use FireflyIII\Models\Preference;
use FireflyIII\Models\TransactionCurrency;
-
/**
* Generated by PHPUnit_SkeletonGenerator on 2015-03-08 at 20:05:14.
*/
@@ -15,10 +14,12 @@ class AccountControllerTest extends TestCase
public function setUp()
{
parent::setUp();
+ Artisan::call('migrate');
}
+
/**
* Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed.