Commit 473b40ed authored by Viral Solani's avatar Viral Solani

Unit Tests for Permission module

parent ff673f47
<?php
namespace Tests\Unit\Models;
use Tests\TestCase;
use App\Models\Access\Permission\Permission;
class PermissionTest extends TestCase
{
/** @test */
public function a_permission_has_roles()
{
$permission = Permission::find(1);
$this->assertInstanceOf(
'Illuminate\Database\Eloquent\Collection', $permission->roles
);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment