From d8234d5a0bd54a6ebc9fa599a419fa45f661ddb4 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 30 Nov 2021 20:46:44 -0800 Subject: [PATCH] Trying to unfuck the TestCase A lot has changed between versions Signed-off-by: snipe --- tests/TestCase.php | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/tests/TestCase.php b/tests/TestCase.php index 2932d4a69..e84964010 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -1,10 +1,40 @@ make(Illuminate\Contracts\Console\Kernel::class)->bootstrap(); + return $app; + } + + + public function setUp() : void + { + parent::setUp(); + \Artisan::call('migrate:fresh'); + $this->seed(); + } + + public function tearDown() : void + { + //Artisan::call('migrate:reset'); + parent::tearDown(); + } +} \ No newline at end of file