Skip to content

Firefly III: a personal finances manager

Updates TestCase.php

James Colea5b759f26830
diff --git a/tests/TestCase.php b/tests/TestCase.php
index e48d3208ae..c7be516d16 100644
--- a/tests/TestCase.php
+++ b/tests/TestCase.php
@@ -1,4 +1,7 @@
<?php
+
+use League\FactoryMuffin\Facade as FactoryMuffin;
+
/**
* Class TestCase
*/
@@ -19,6 +22,28 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app;
}
+ /**
+ * This method is called before the first test of this test class is run.
+ *
+ * @since Method available since Release 3.4.0
+ */
+ public static function setUpBeforeClass()
+ {
+
+ }
+
+ /**
+ * Sets up the fixture, for example, opens a network connection.
+ * This method is called before a test is executed.
+ */
+ public function setUp()
+ {
+ parent::setUp();
+ Artisan::call('migrate');
+ FactoryMuffin::loadFactories(__DIR__ . '/factories');
+
+ }
+
/**