mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Remove the putenv
This commit is contained in:
parent
1fb8f421a2
commit
aa4bb121ae
|
@ -12,7 +12,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
parent::createApplication();
|
parent::createApplication();
|
||||||
parent::setUp();
|
//parent::setUp();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -22,7 +22,7 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||||
*/
|
*/
|
||||||
public function createApplication()
|
public function createApplication()
|
||||||
{
|
{
|
||||||
putenv('DB_DEFAULT=sqlite');
|
//putenv('DB_DEFAULT=sqlite');
|
||||||
$app = require __DIR__.'/../bootstrap/app.php';
|
$app = require __DIR__.'/../bootstrap/app.php';
|
||||||
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
||||||
return $app;
|
return $app;
|
||||||
|
@ -30,8 +30,8 @@ class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
{
|
{
|
||||||
Artisan::call('migrate');
|
//Artisan::call('migrate');
|
||||||
parent::setUp();
|
//parent::setUp();
|
||||||
//Artisan::call('migrate');
|
//Artisan::call('migrate');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue