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
e6eb5130
Commit
e6eb5130
authored
Dec 26, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Log Viewer Tests
parent
ec1d8544
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
4 deletions
+48
-4
sidebar.blade.php
resources/views/backend/includes/sidebar.blade.php
+5
-4
LogViewerRouteTest.php
tests/Feature/Backend/LogViewerRouteTest.php
+43
-0
No files found.
resources/views/backend/includes/sidebar.blade.php
View file @
e6eb5130
<?php
//dd(getMenuItems());
<?php
//dd(getMenuItems());
?>
<!-- Left side column. contains the logo and sidebar -->
<aside
class=
"main-sidebar"
>
...
...
@@ -111,15 +111,16 @@
</li>
@endauth
</ul>
@permission('view-faq')
</li>
@endauth
@permission('view-faq')
<li
class=
"{{ active_class(Active::checkUriPattern('admin/faqs*')) }}"
>
<a
href=
"{{ route('admin.faqs.index')}}"
>
<i
class=
"fa fa-question-circle"
></i>
<span>
{{ trans('labels.backend.faqs.title') }}
</span>
</a>
</li>
@endauth
</li>
@endauth
<li
class=
"{{ active_class(Active::checkUriPattern('admin/log-viewer*')) }} treeview"
>
...
...
tests/Feature/Backend/LogViewerRouteTest.php
0 → 100644
View file @
e6eb5130
<?php
namespace
Tests\Feature\Backend
;
use
Tests\BrowserKitTestCase
;
/**
* Class LogViewerRouteTest.
*/
class
LogViewerRouteTest
extends
BrowserKitTestCase
{
/** @test **/
public
function
admin_users_can_see_logviewer_dashboard
()
{
$this
->
actingAs
(
$this
->
admin
)
->
visit
(
'/admin/log-viewer'
)
->
see
(
'Log Viewer'
);
}
/** @test **/
public
function
admin_users_can_see_logviewer_list
()
{
$this
->
actingAs
(
$this
->
admin
)
->
visit
(
'/admin/log-viewer/logs'
)
->
see
(
'Logs'
);
}
/** @test **/
public
function
admin_users_can_see_logviewer_single_date
()
{
$this
->
actingAs
(
$this
->
admin
)
->
visit
(
'/admin/log-viewer/logs/'
.
date
(
'Y-m-d'
))
->
see
(
'Log ['
.
date
(
'Y-m-d'
)
.
']'
);
}
/** @test **/
public
function
admin_users_can_see_logviewer_single_date_type
()
{
$this
->
actingAs
(
$this
->
admin
)
->
visit
(
'/admin/log-viewer/logs/'
.
date
(
'Y-m-d'
)
.
'/error'
)
->
see
(
'Log ['
.
date
(
'Y-m-d'
)
.
']'
);
}
}
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