Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-adminpanel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
laravel-adminpanel
Commits
60ab865f
Commit
60ab865f
authored
Dec 27, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Users Feature Test
parent
c4ccd0ce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
4 deletions
+50
-4
user-header-buttons.blade.php
...nd/access/includes/partials/user-header-buttons.blade.php
+3
-3
ManagePagesTest.php
tests/Feature/Backend/ManagePagesTest.php
+1
-1
ManageUsersTest.php
tests/Feature/Backend/ManageUsersTest.php
+46
-0
No files found.
resources/views/backend/access/includes/partials/user-header-buttons.blade.php
View file @
60ab865f
...
...
@@ -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>
...
...
tests/Feature/Backend/ManagePageTest.php
→
tests/Feature/Backend/ManagePage
s
Test.php
View file @
60ab865f
...
...
@@ -5,7 +5,7 @@ namespace Tests\Feature\Backend;
use
App\Models\Page\Page
;
use
Tests\TestCase
;
class
ManagePageTest
extends
TestCase
class
ManagePage
s
Test
extends
TestCase
{
/** @test */
public
function
test_pages_index_route
()
...
...
tests/Feature/Backend/ManageUsersTest.php
0 → 100644
View file @
60ab865f
<?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'
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment