1
0
Fork 0

Add user page.

This commit is contained in:
Henrik Hautakoski 2021-07-21 18:57:10 +02:00
parent ecc35c6fe6
commit 2f215d0b82
5 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,24 @@
<?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);
}
}