firefly-iii/app/tests/TestCase.php

40 lines
765 B
PHP
Raw Normal View History

2014-06-28 02:41:44 -05:00
<?php
use League\FactoryMuffin\Facade as f;
2014-06-28 02:41:44 -05:00
2014-08-10 11:22:42 -05:00
/**
* Class TestCase
*/
2014-11-25 14:04:00 -06:00
class TestCase extends Illuminate\Foundation\Testing\TestCase
{
2014-07-03 02:16:17 -05:00
/**
* Creates the application.
*
* @return \Symfony\Component\HttpKernel\HttpKernelInterface
*/
public function createApplication()
{
2014-11-25 14:04:00 -06:00
$unitTesting = true;
2014-07-03 02:16:17 -05:00
$testEnvironment = 'testing';
2014-11-25 14:04:00 -06:00
return require __DIR__ . '/../../bootstrap/start.php';
}
2014-11-25 14:04:00 -06:00
public function setUp()
{
parent::setUp();
2014-11-25 14:04:00 -06:00
}
static public function setupBeforeClass()
{
//League\FactoryMuffin\Facade::loadFactories(__DIR__ . '/factories');
f::loadFactories(__DIR__ . '/factories');
2014-11-25 14:04:00 -06:00
}
public function tearDown()
{
//m::close();
2014-11-25 14:04:00 -06:00
}
}