mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
30 lines
559 B
PHP
30 lines
559 B
PHP
<?php
|
|
|
|
class TestCase extends Illuminate\Foundation\Testing\TestCase
|
|
{
|
|
|
|
/**
|
|
* Creates the application.
|
|
*
|
|
* @return Symfony\Component\HttpKernel\HttpKernelInterface
|
|
*/
|
|
public function createApplication()
|
|
{
|
|
$unitTesting = true;
|
|
|
|
$testEnvironment = 'testing';
|
|
|
|
$result = require __DIR__.'/../bootstrap/start.php';
|
|
|
|
/*
|
|
* Use the array driver during the unit testing
|
|
*/
|
|
Config::set('cache.driver', 'array');
|
|
|
|
App::setLocale('en');
|
|
|
|
return $result;
|
|
}
|
|
|
|
}
|