Commit 60ab865f authored by Viral Solani's avatar Viral Solani

Users Feature Test

parent c4ccd0ce
......@@ -6,7 +6,7 @@
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i> Copy</a></li>
<li id="copyButton"><a href="#"><i class="fa fa-clone"></i>Copy</a></li>
<li id="csvButton"><a href="#"><i class="fa fa-file-text-o"></i> CSV</a></li>
<li id="excelButton"><a href="#"><i class="fa fa-file-excel-o"></i> Excel</a></li>
<li id="pdfButton"><a href="#"><i class="fa fa-file-pdf-o"></i> PDF</a></li>
......
......@@ -5,7 +5,7 @@ namespace Tests\Feature\Backend;
use App\Models\Page\Page;
use Tests\TestCase;
class ManagePageTest extends TestCase
class ManagePagesTest extends TestCase
{
/** @test */
public function test_pages_index_route()
......
<?php
namespace Tests\Feature\Backend;
use App\Models\Page\Page;
use Tests\TestCase;
class ManageUsersTest extends TestCase
{
/** @test */
public function a_user_can_view_active_users()
{
$this->actingAs($this->admin)
->get(route('admin.access.user.index'))
->assertViewIs('backend.access.users.index')
->assertSee(trans('labels.backend.access.users.management'))
->assertSee(trans('labels.backend.access.users.active'))
->assertSee('Export')
->assertSee('Action');
}
/** @test */
public function a_user_can_view_deactevated_users()
{
$this->actingAs($this->admin)
->get(route('admin.access.user.deactivated'))
->assertViewIs('backend.access.users.deactivated')
->assertSee(trans('labels.backend.access.users.management'))
->assertSee(trans('labels.backend.access.users.deactivated'))
->assertSee('Export')
->assertSee('Action');
}
/** @test */
public function a_user_can_view_deleted_users()
{
$this->actingAs($this->admin)
->get(route('admin.access.user.deleted'))
->assertViewIs('backend.access.users.deleted')
->assertSee(trans('labels.backend.access.users.management'))
->assertSee(trans('labels.backend.access.users.deleted'))
->assertSee('Export')
->assertSee('Action');
}
}
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