2013-01-11 15:14:07 -06:00
|
|
|
<?php
|
|
|
|
|
|
2016-11-29 15:48:33 -06:00
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Contracts\Console\Kernel;
|
|
|
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
|
|
|
|
|
|
abstract class TestCase extends BaseTestCase
|
2015-02-22 20:47:03 -06:00
|
|
|
{
|
2015-05-06 16:58:00 -05:00
|
|
|
/**
|
|
|
|
|
* The base URL to use while testing the application.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $baseUrl = 'http://localhost';
|
|
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/**
|
|
|
|
|
* Creates the application.
|
|
|
|
|
*
|
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
|
*/
|
|
|
|
|
public function createApplication()
|
|
|
|
|
{
|
|
|
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
2014-11-07 10:07:31 -06:00
|
|
|
|
2016-11-29 15:48:33 -06:00
|
|
|
$app->make(Kernel::class)->bootstrap();
|
2013-01-11 15:14:07 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
return $app;
|
|
|
|
|
}
|
2013-02-07 09:12:56 +11:00
|
|
|
}
|