mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-22 06:23:12 -06:00
52 lines
1.1 KiB
PHP
52 lines
1.1 KiB
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Class TestCase
|
||
|
*/
|
||
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
||
|
{
|
||
|
protected $baseUrl = 'http://localhost';
|
||
|
|
||
|
/**
|
||
|
* Creates the application.
|
||
|
*
|
||
|
* @return \Illuminate\Foundation\Application
|
||
|
*/
|
||
|
public function createApplication()
|
||
|
{
|
||
|
$app = require __DIR__ . '/../bootstrap/app.php';
|
||
|
|
||
|
$app->make('Illuminate\Contracts\Console\Kernel')->bootstrap();
|
||
|
|
||
|
return $app;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Sets up the fixture, for example, opens a network connection.
|
||
|
* This method is called before a test is executed.
|
||
|
*/
|
||
|
public function setUp()
|
||
|
{
|
||
|
parent::setUp();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* This method is called before the first test of this test class is run.
|
||
|
*
|
||
|
* @since Method available since Release 3.4.0
|
||
|
*/
|
||
|
public static function setUpBeforeClass()
|
||
|
{
|
||
|
parent::setUpBeforeClass();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Tears down the fixture, for example, closes a network connection.
|
||
|
* This method is called after a test is executed.
|
||
|
*/
|
||
|
public function tearDown()
|
||
|
{
|
||
|
parent::tearDown();
|
||
|
}
|
||
|
}
|