Files
firefly-iii/tests/TestCase.php

26 lines
541 B
PHP
Raw Normal View History

2015-07-02 09:44:56 +02:00
<?php
2016-05-20 08:57:45 +02:00
2016-09-16 06:19:40 +02:00
abstract class TestCase extends Illuminate\Foundation\Testing\TestCase
2015-07-02 09:44:56 +02:00
{
/**
* The base URL to use while testing the application.
*
* @var string
*/
2015-07-02 09:44:56 +02:00
protected $baseUrl = 'http://localhost';
/**
* Creates the application.
*
* @return \Illuminate\Foundation\Application
*/
public function createApplication()
{
2016-09-16 06:19:40 +02:00
$app = require __DIR__.'/../bootstrap/app.php';
2015-07-02 09:44:56 +02:00
$app->make(Illuminate\Contracts\Console\Kernel::class)->bootstrap();
2015-07-02 09:44:56 +02:00
return $app;
}
}