Archived
1
0
Fork 0
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
heritage-wow/tests/Feature/UserTest.php
2021-07-21 18:57:10 +02:00

24 lines
490 B
PHP

<?php
namespace Tests\Feature;
use Illuminate\Support\Facades\Hash;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Illuminate\Foundation\Testing\WithFaker;
use Tests\TestCase;
use App\Models\User;
class UserTest extends TestCase
{
use RefreshDatabase;
public function test_user_page_can_be_viewed()
{
$user = User::factory()->create();
$response = $this->get(route('user.show', [ 'user' => $user ]));
$response->assertStatus(200);
}
}