BookStack/tests/TestCase.php

32 lines
613 B
PHP
Raw Normal View History

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