mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 10:54:30 -04:00
Merge branch 'develop' of github.com:invoiceninja/invoiceninja into develop
This commit is contained in:
commit
dcac9809ea
@ -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';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user