initial: bootstrap from BukidBountyApp base

This commit is contained in:
Jonathan Sykes
2026-06-06 18:43:00 +08:00
commit eb4a5731fb
5674 changed files with 160857 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
declare(strict_types=1);
namespace Tests\Feature;
use App\Models\User;
use Hypervel\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
/**
* @internal
* @coversNothing
*/
class RefreshDatabaseTest extends TestCase
{
use RefreshDatabase;
public function testCreateUser()
{
$user = factory(User::class)->create();
$this->assertDatabaseHas('users', [
'id' => $user->id,
]);
}
public function testCreateMultipleUsers()
{
factory(User::class, $count = 5)->create();
$this->assertDatabaseCount('users', $count);
}
public function testZeroUserAfterRefresh()
{
$this->assertSame(0, User::count());
}
}