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
00e52fdf
Unverified
Commit
00e52fdf
authored
Jan 02, 2018
by
Viral Solani
Committed by
GitHub
Jan 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #125 from viralsolani/analysis-86A90W
Apply fixes from StyleCI
parents
48809bd4
73a592ae
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
+9
-11
BlogTagFactory.php
database/factories/BlogTagFactory.php
+5
-5
ManageBlogTagsTest.php
tests/Feature/Backend/ManageBlogTagsTest.php
+1
-1
BlogCategoryTest.php
tests/Unit/Models/BlogCategoryTest.php
+1
-3
BlogTagTest.php
tests/Unit/Models/BlogTagTest.php
+2
-2
No files found.
database/factories/BlogTagFactory.php
View file @
00e52fdf
<?php
<?php
use
Faker\Generator
as
Faker
;
use
App\Models\BlogTags\BlogTag
;
use
App\Models\Access\User\User
;
use
App\Models\Access\User\User
;
use
App\Models\BlogTags\BlogTag
;
use
Faker\Generator
as
Faker
;
$factory
->
define
(
BlogTag
::
class
,
function
(
Faker
$faker
)
{
$factory
->
define
(
BlogTag
::
class
,
function
(
Faker
$faker
)
{
return
[
return
[
'name'
=>
$faker
->
word
,
'name'
=>
$faker
->
word
,
'status'
=>
$faker
->
numberBetween
(
0
,
1
),
'status'
=>
$faker
->
numberBetween
(
0
,
1
),
'created_by'
=>
function
()
{
'created_by'
=>
function
()
{
return
factory
(
User
::
class
)
->
create
()
->
id
;
return
factory
(
User
::
class
)
->
create
()
->
id
;
}
}
,
];
];
});
});
tests/Feature/Backend/ManageBlogTagsTest.php
View file @
00e52fdf
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
namespace
Tests\Feature\Backend
;
namespace
Tests\Feature\Backend
;
use
Tests\TestCase
;
use
App\Models\BlogTags\BlogTag
;
use
App\Models\BlogTags\BlogTag
;
use
Tests\TestCase
;
class
ManageBlogTagsTest
extends
TestCase
class
ManageBlogTagsTest
extends
TestCase
{
{
...
...
tests/Unit/Models/BlogCategoryTest.php
View file @
00e52fdf
...
@@ -2,11 +2,9 @@
...
@@ -2,11 +2,9 @@
namespace
Tests\Unit\Models
;
namespace
Tests\Unit\Models
;
use
Tests\TestCase
;
use
App\Models\Access\User\User
;
use
App\Models\Access\User\User
;
use
App\Models\BlogCategories\BlogCategory
;
use
App\Models\BlogCategories\BlogCategory
;
use
Illuminate\Foundation\Testing\WithFaker
;
use
Tests\TestCase
;
use
Illuminate\Foundation\Testing\RefreshDatabase
;
class
BlogCategoryTest
extends
TestCase
class
BlogCategoryTest
extends
TestCase
{
{
...
...
tests/Unit/Models/BlogTagTest.php
View file @
00e52fdf
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
namespace
Tests\Unit\Models
;
namespace
Tests\Unit\Models
;
use
Tests\TestCase
;
use
App\Models\BlogTags\BlogTag
;
use
App\Models\Access\User\User
;
use
App\Models\Access\User\User
;
use
App\Models\BlogTags\BlogTag
;
use
Tests\TestCase
;
class
BlogTagTest
extends
TestCase
class
BlogTagTest
extends
TestCase
{
{
...
...
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