Updates TestCase.php

This commit is contained in:
James Cole 2015-04-03 08:37:53 +02:00
parent 6a9ffae25d
commit a5b759f268

View File

@ -1,4 +1,7 @@
<?php <?php
use League\FactoryMuffin\Facade as FactoryMuffin;
/** /**
* Class TestCase * Class TestCase
*/ */
@ -19,6 +22,28 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
return $app; 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');
}
/** /**