Add user page.
This commit is contained in:
parent
ecc35c6fe6
commit
2f215d0b82
5 changed files with 81 additions and 0 deletions
24
tests/Feature/UserTest.php
Normal file
24
tests/Feature/UserTest.php
Normal 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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue