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
baf76c79
Commit
baf76c79
authored
Dec 27, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactoring Tests
parent
aaa8cdd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
mix-manifest.json
public/mix-manifest.json
+3
-3
ManagePagesTest.php
tests/Feature/Backend/ManagePagesTest.php
+3
-3
ManageUsersTest.php
tests/Feature/Backend/ManageUsersTest.php
+2
-0
No files found.
public/mix-manifest.json
View file @
baf76c79
{
{
"/js/frontend.js"
:
"/js/frontend.
945469bbbc12df3ad9e1
.js"
,
"/js/frontend.js"
:
"/js/frontend.
70ee44a92d84e7318a9d
.js"
,
"/js/backend.js"
:
"/js/backend.
79d9e4698dadbc0d93c7
.js"
,
"/js/backend.js"
:
"/js/backend.
9cdae6ab449e701ce881
.js"
,
"/mix.js"
:
"/mix.247ab120fe7680658924.js"
,
"/mix.js"
:
"/mix.247ab120fe7680658924.js"
,
"/css/frontend.css"
:
"/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css"
,
"/css/frontend.css"
:
"/css/frontend.3af0a6cbd7d1d8d042f2a37e97008b7c.css"
,
"/css/backend.css"
:
"/css/backend.f8550f50504e5b8ef6055285205f223a.css"
,
"/css/backend.css"
:
"/css/backend.f8550f50504e5b8ef6055285205f223a.css"
,
"/css/backend-custom.css"
:
"/css/backend-custom.18e74fbe4c755b817a022d6d3d4e76b1.css"
,
"/css/backend-custom.css"
:
"/css/backend-custom.18e74fbe4c755b817a022d6d3d4e76b1.css"
,
"/js/backend-custom.js"
:
"/js/backend-custom.
e6ea05e1824d0dd8e7c62027c135b7f2
.js"
,
"/js/backend-custom.js"
:
"/js/backend-custom.
694670b0d97bf54111bac3bd91ba3fcf
.js"
,
"/js/dataTable.js"
:
"/js/dataTable.f968d300a6a0b871f138f114361259c8.js"
"/js/dataTable.js"
:
"/js/dataTable.f968d300a6a0b871f138f114361259c8.js"
}
}
\ No newline at end of file
tests/Feature/Backend/ManagePagesTest.php
View file @
baf76c79
...
@@ -8,7 +8,7 @@ use Tests\TestCase;
...
@@ -8,7 +8,7 @@ use Tests\TestCase;
class
ManagePagesTest
extends
TestCase
class
ManagePagesTest
extends
TestCase
{
{
/** @test */
/** @test */
public
function
test_pages_index_route
()
public
function
a_user_can_view_pages
()
{
{
$this
->
actingAs
(
$this
->
admin
)
$this
->
actingAs
(
$this
->
admin
)
->
get
(
route
(
'admin.pages.index'
))
->
get
(
route
(
'admin.pages.index'
))
...
@@ -45,7 +45,7 @@ class ManagePagesTest extends TestCase
...
@@ -45,7 +45,7 @@ class ManagePagesTest extends TestCase
}
}
/** @test */
/** @test */
public
function
test_create_page_successfully
()
public
function
a_user_can_create_page
()
{
{
$page
=
make
(
Page
::
class
);
$page
=
make
(
Page
::
class
);
...
@@ -82,7 +82,7 @@ class ManagePagesTest extends TestCase
...
@@ -82,7 +82,7 @@ class ManagePagesTest extends TestCase
}
}
/** @test */
/** @test */
public
function
it_updates_successfully
()
public
function
a_user_can_update_page
()
{
{
$page
=
create
(
Page
::
class
);
$page
=
create
(
Page
::
class
);
$title
=
'Changed title'
;
$title
=
'Changed title'
;
...
...
tests/Feature/Backend/ManageUsersTest.php
View file @
baf76c79
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
namespace
Tests\Feature\Backend
;
namespace
Tests\Feature\Backend
;
use
Tests\TestCase
;
use
Tests\TestCase
;
use
App\Models\Access\User\User
;
class
ManageUsersTest
extends
TestCase
class
ManageUsersTest
extends
TestCase
{
{
...
@@ -55,4 +56,5 @@ class ManageUsersTest extends TestCase
...
@@ -55,4 +56,5 @@ class ManageUsersTest extends TestCase
->
assertSee
(
$this
->
admin
->
last_name
)
->
assertSee
(
$this
->
admin
->
last_name
)
->
assertSee
(
$this
->
admin
->
email
);
->
assertSee
(
$this
->
admin
->
email
);
}
}
}
}
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