You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
434 B
20 lines
434 B
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use App\User;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Tests\TestCase;
|
|
|
|
class UsersProfileTest extends TestCase
|
|
{
|
|
use DatabaseMigrations;
|
|
|
|
/** @test */
|
|
public function user_can_view_other_users_profile()
|
|
{
|
|
$user = factory(User::class)->create();
|
|
$this->visit(route('users.show', $user->id));
|
|
$this->see('Profile : ' . $user->nickname);
|
|
}
|
|
}
|