2013-01-11 15:14:07 -06:00
|
|
|
<?php
|
|
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|
|
|
|
{
|
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
|
|
|
|
2015-06-08 10:29:33 +03:00
|
|
|
$app->make(Illuminate\Contracts\Console\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
|
|
|
}
|