Skip to content

Commit

Permalink
Use RefreshDatabase
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTWF committed May 8, 2022
1 parent b9c47ec commit 72514c1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@

namespace Tests;

use DB;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase;

abstract class TestCase extends BaseTestCase
{
use CreatesApplication;
use CreatesApplication, RefreshDatabase;

public function beforeRefreshingDatabase()
{
DB::table('discord_notifications')->delete();
DB::table('flow_measures')->delete();
DB::table('events')->delete();
DB::table('flight_information_regions')->delete();
DB::table('users')->delete();
DB::table('airport_groups')->delete();
DB::table('airports')->delete();
DB::table('discord_tags')->delete();
}
}

0 comments on commit 72514c1

Please sign in to comment.