Merge branch 'develop' of github.com:invoiceninja/invoiceninja into develop

This commit is contained in:
Hillel Coren 2018-03-25 13:18:32 +03:00
commit dcac9809ea

View File

@ -1,19 +1,21 @@
<?php <?php
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
class TestCase extends Illuminate\Foundation\Testing\TestCase { {
/**
* The base URL to use while testing the application.
*
* @var string
*/
protected $baseUrl = 'http://localhost';
/** /**
* Creates the application. * Creates the application.
* *
* @return Symfony\Component\HttpKernel\HttpKernelInterface * @return \Illuminate\Foundation\Application
*/ */
public function createApplication() public function createApplication()
{ {
$unitTesting = true; $app = require __DIR__.'/../bootstrap/app.php';
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
$testEnvironment = 'testing'; return $app;
return require __DIR__.'/../../bootstrap/start.php';
} }
} }