2019-05-14 07:52:49 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Tests;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
|
|
|
|
|
|
|
|
abstract class TestCase extends BaseTestCase
|
|
|
|
{
|
|
|
|
use CreatesApplication;
|
2021-12-03 02:36:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Hack to get testing working
|
|
|
|
*/
|
|
|
|
protected function tearDown(): void
|
|
|
|
{
|
|
|
|
$config = app('config');
|
|
|
|
$events = app('events');
|
|
|
|
parent::tearDown();
|
|
|
|
app()->instance('config', $config);
|
|
|
|
app()->instance('events', $events);
|
|
|
|
}
|
2019-05-14 07:52:49 +00:00
|
|
|
}
|