2015-07-02 02:44:56 -05:00
|
|
|
<?php
|
|
|
|
|
2016-01-16 00:14:36 -06:00
|
|
|
/**
|
|
|
|
* Class TestCase
|
|
|
|
*/
|
2015-07-02 02:44:56 -05:00
|
|
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|
|
|
{
|
2016-01-08 07:30:19 -06:00
|
|
|
/**
|
|
|
|
* The base URL to use while testing the application.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2015-07-02 02:44:56 -05:00
|
|
|
protected $baseUrl = 'http://localhost';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
*/
|
|
|
|
public function createApplication()
|
|
|
|
{
|
2016-01-08 07:30:19 -06:00
|
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
2015-07-02 02:44:56 -05:00
|
|
|
|
2016-01-08 07:30:19 -06:00
|
|
|
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
|
2015-07-02 02:44:56 -05:00
|
|
|
|
|
|
|
return $app;
|
|
|
|
}
|
|
|
|
}
|