Add RefreshDatabase for UserTest
This commit is contained in:
parent
7797575fd3
commit
b4c44f5a14
@ -3,12 +3,14 @@
|
||||
namespace Tests\Feature;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Tests\TestCase;
|
||||
|
||||
class UserTest extends TestCase
|
||||
{
|
||||
// FIXME: tests should be
|
||||
// grouped and be separated in several files
|
||||
use RefreshDatabase;
|
||||
|
||||
public function test_success_get_users(): void
|
||||
{
|
||||
@ -34,6 +36,6 @@ public function test_fail_get_user_not_exists(): void
|
||||
// but in future updates id
|
||||
// will be uuid, it is safer
|
||||
$this->get('/user/sehtrgher')
|
||||
->assertNotFound();
|
||||
->assertBadRequest();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user