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
e7aa8d81
Unverified
Commit
e7aa8d81
authored
Mar 07, 2019
by
Viral Solani
Committed by
GitHub
Mar 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #359 from viralsolani/analysis-zGj4LA
Apply fixes from StyleCI
parents
b788def5
ab42a44d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
73 deletions
+73
-73
app.php
config/app.php
+39
-39
PageTest.php
tests/Feature/Api/V1/PageTest.php
+24
-24
ManageBlogsTest.php
tests/Feature/Backend/ManageBlogsTest.php
+8
-8
ManageSettingsTest.php
tests/Feature/Backend/ManageSettingsTest.php
+2
-2
No files found.
config/app.php
View file @
e7aa8d81
tests/Feature/Api/V1/PageTest.php
View file @
e7aa8d81
...
...
@@ -19,7 +19,7 @@ class PageTest extends TestCase
$this
->
user
=
User
::
find
(
1
);
$this
->
token
=
JWTAuth
::
fromUser
(
$this
->
user
);
$this
->
headers
=
[
'Authorization'
=>
'Bearer '
.
$this
->
token
];
$this
->
headers
=
[
'Authorization'
=>
'Bearer '
.
$this
->
token
];
}
/**
...
...
@@ -66,7 +66,7 @@ class PageTest extends TestCase
{
$page
=
create
(
Page
::
class
);
$payload
=
[];
$response
=
$this
->
json
(
'GET'
,
'/api/v1/pages/'
.
$page
->
id
,
$payload
,
$this
->
headers
);
$response
=
$this
->
json
(
'GET'
,
'/api/v1/pages/'
.
$page
->
id
,
$payload
,
$this
->
headers
);
$response
->
assertStatus
(
200
)
->
assertJson
([
...
...
@@ -108,7 +108,7 @@ class PageTest extends TestCase
'title'
=>
$page
->
title
,
'status_label'
=>
$page
->
status_label
,
'status'
=>
(
$page
->
isActive
())
?
'Active'
:
'InActive'
,
'created_by'
=>
''
.
$this
->
user
->
id
,
'created_by'
=>
''
.
$this
->
user
->
id
,
],
]);
}
...
...
@@ -157,7 +157,7 @@ class PageTest extends TestCase
{
$page
=
create
(
Page
::
class
);
$payload
=
[];
$response
=
$this
->
json
(
'DELETE'
,
'/api/v1/pages/'
.
$page
->
id
,
$payload
,
$this
->
headers
);
$response
=
$this
->
json
(
'DELETE'
,
'/api/v1/pages/'
.
$page
->
id
,
$payload
,
$this
->
headers
);
$response
->
assertStatus
(
200
)
->
assertJson
([
'message'
=>
'The Page was successfully deleted.'
,
...
...
tests/Feature/Backend/ManageBlogsTest.php
View file @
e7aa8d81
...
...
@@ -142,7 +142,7 @@ class ManageBlogsTest extends TestCase
$stored_blog
=
Blog
::
find
(
2
);
Storage
::
disk
(
'public'
)
->
assertExists
(
'img/blog/'
.
$stored_blog
->
featured_image
);
Storage
::
disk
(
'public'
)
->
assertExists
(
'img/blog/'
.
$stored_blog
->
featured_image
);
}
/** @test */
...
...
tests/Feature/Backend/ManageSettingsTest.php
View file @
e7aa8d81
...
...
@@ -38,7 +38,7 @@ class ManageSettingsTest extends TestCase
'logo'
=>
UploadedFile
::
fake
()
->
image
(
'logo.jpg'
,
226
,
48
),
]);
Storage
::
disk
(
'public'
)
->
assertExists
(
'img/logo/'
.
$this
->
setting
->
logo
);
Storage
::
disk
(
'public'
)
->
assertExists
(
'img/logo/'
.
$this
->
setting
->
logo
);
}
/** @test */
...
...
@@ -59,7 +59,7 @@ class ManageSettingsTest extends TestCase
'favicon'
=>
UploadedFile
::
fake
()
->
image
(
'favicon.jpg'
,
16
,
16
),
]);
Storage
::
disk
(
'public'
)
->
assertExists
(
'img/favicon/'
.
$this
->
setting
->
favicon
);
Storage
::
disk
(
'public'
)
->
assertExists
(
'img/favicon/'
.
$this
->
setting
->
favicon
);
}
/** @test */
...
...
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