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.
21 lines
420 B
21 lines
420 B
<?php
|
|
|
|
namespace Tests\Unit\Policies;
|
|
|
|
use App\User;
|
|
use Illuminate\Foundation\Testing\DatabaseMigrations;
|
|
use Tests\TestCase;
|
|
|
|
class UserPolicyTest extends TestCase
|
|
{
|
|
use DatabaseMigrations;
|
|
|
|
/** @test */
|
|
public function admin_can_edit_users_profile()
|
|
{
|
|
$user = factory(User::class)->create();
|
|
$manager = $user->manager;
|
|
|
|
$this->assertTrue($manager->can('edit', $user));
|
|
}
|
|
}
|