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
e32347a7
Unverified
Commit
e32347a7
authored
Dec 25, 2017
by
Viral Solani
Committed by
GitHub
Dec 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #104 from viralsolani/analysis-z37Bbr
Apply fixes from StyleCI
parents
1890b5bb
e00d488d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
PageFactory.php
database/factories/PageFactory.php
+4
-4
ManagePageTest.php
tests/Feature/ManagePageTest.php
+3
-6
No files found.
database/factories/PageFactory.php
View file @
e32347a7
...
@@ -4,12 +4,12 @@ use App\Models\Page\Page;
...
@@ -4,12 +4,12 @@ use App\Models\Page\Page;
use
Faker\Generator
as
Faker
;
use
Faker\Generator
as
Faker
;
$factory
->
define
(
Page
::
class
,
function
(
Faker
$faker
)
{
$factory
->
define
(
Page
::
class
,
function
(
Faker
$faker
)
{
$title
=
$faker
->
sentence
;
$title
=
$faker
->
sentence
;
return
[
return
[
'title'
=>
$title
,
'title'
=>
$title
,
'page_slug'
=>
str_slug
(
$title
),
'page_slug'
=>
str_slug
(
$title
),
'description'
=>
$faker
->
paragraph
,
'description'
=>
$faker
->
paragraph
,
'created_by'
=>
1
'created_by'
=>
1
,
];
];
});
});
tests/Feature/ManagePageTest.php
View file @
e32347a7
...
@@ -2,10 +2,8 @@
...
@@ -2,10 +2,8 @@
namespace
Tests\Feature
;
namespace
Tests\Feature
;
use
Tests\TestCase
;
use
App\Models\Page\Page
;
use
App\Models\Page\Page
;
use
Illuminate\Foundation\Testing\WithFaker
;
use
Tests\TestCase
;
use
Illuminate\Foundation\Testing\RefreshDatabase
;
class
ManagePageTest
extends
TestCase
class
ManagePageTest
extends
TestCase
{
{
...
@@ -81,7 +79,6 @@ class ManagePageTest extends TestCase
...
@@ -81,7 +79,6 @@ class ManagePageTest extends TestCase
->
actingAs
(
$this
->
admin
)
->
actingAs
(
$this
->
admin
)
->
post
(
route
(
'admin.pages.store'
),
$page
->
toArray
())
->
post
(
route
(
'admin.pages.store'
),
$page
->
toArray
())
->
assertSessionHasErrors
(
'description'
);
->
assertSessionHasErrors
(
'description'
);
}
}
/** @test */
/** @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