mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 12:10:41 -05:00
check all mods, use refresh db
This commit is contained in:
parent
82a466eb58
commit
a1ae15fb67
@ -4,6 +4,8 @@ use App\Models\ModVersion;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Illuminate\Support\Carbon;
|
||||
|
||||
uses(RefreshDatabase::class);
|
||||
|
||||
it('includes only published mod versions', function () {
|
||||
$publishedMod = ModVersion::factory()->create([
|
||||
'published_at' => Carbon::now()->subDay(),
|
||||
@ -15,6 +17,10 @@ it('includes only published mod versions', function () {
|
||||
'published_at' => null,
|
||||
]);
|
||||
|
||||
$all = ModVersion::withoutGlobalScopes()->get();
|
||||
|
||||
expect($all)->toHaveCount(3);
|
||||
|
||||
$mods = ModVersion::all();
|
||||
|
||||
expect($mods)->toHaveCount(1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user