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

This commit is contained in:
James Cole 2015-04-02 22:51:00 +02:00
parent cff77c39e2
commit 36ec974284
2 changed files with 6 additions and 1 deletions

View File

@ -19,6 +19,8 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app; return $app;
} }
/** /**
* @param string $class * @param string $class
* *
@ -33,4 +35,6 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $mock; return $mock;
} }
} }

View File

@ -1,7 +1,6 @@
<?php <?php
use FireflyIII\Models\Preference; use FireflyIII\Models\Preference;
use FireflyIII\Models\TransactionCurrency; use FireflyIII\Models\TransactionCurrency;
/** /**
* Generated by PHPUnit_SkeletonGenerator on 2015-03-08 at 20:05:14. * Generated by PHPUnit_SkeletonGenerator on 2015-03-08 at 20:05:14.
*/ */
@ -15,10 +14,12 @@ class AccountControllerTest extends TestCase
public function setUp() public function setUp()
{ {
parent::setUp(); parent::setUp();
Artisan::call('migrate');
} }
/** /**
* Tears down the fixture, for example, closes a network connection. * Tears down the fixture, for example, closes a network connection.
* This method is called after a test is executed. * This method is called after a test is executed.