2015-07-13 03:01:42 +08:00
|
|
|
<?php
|
|
|
|
|
2015-09-03 01:26:33 +08:00
|
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
2016-03-06 02:09:21 +08:00
|
|
|
use Symfony\Component\DomCrawler\Crawler;
|
2015-09-03 01:26:33 +08:00
|
|
|
|
2015-07-13 03:01:42 +08:00
|
|
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|
|
|
{
|
2015-09-03 01:26:33 +08:00
|
|
|
|
|
|
|
use DatabaseTransactions;
|
|
|
|
|
2015-07-13 03:01:42 +08:00
|
|
|
/**
|
2017-01-26 03:35:40 +08:00
|
|
|
* The base URL of the application.
|
2015-07-13 03:01:42 +08:00
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
2017-01-26 03:35:40 +08:00
|
|
|
public $baseUrl = 'http://localhost';
|
2015-07-13 03:01:42 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates the application.
|
|
|
|
*
|
|
|
|
* @return \Illuminate\Foundation\Application
|
|
|
|
*/
|
|
|
|
public function createApplication()
|
|
|
|
{
|
|
|
|
$app = require __DIR__.'/../bootstrap/app.php';
|
|
|
|
|
2017-01-26 03:35:40 +08:00
|
|
|
$app->make(Kernel::class)->bootstrap();
|
2015-07-13 03:01:42 +08:00
|
|
|
|
|
|
|
return $app;
|
|
|
|
}
|
|
|
|
}
|