firefly-iii/tests/TestCase.php

26 lines
541 B
PHP
Raw Normal View History

2015-07-02 02:44:56 -05:00
<?php
2016-05-20 01:57:45 -05:00
2016-09-15 23:19:40 -05:00
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
2015-07-02 02:44:56 -05: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-09-15 23:19:40 -05:00
$app = require __DIR__.'/../bootstrap/app.php';
2015-07-02 02:44:56 -05:00
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
2015-07-02 02:44:56 -05:00
return $app;
}
}