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
f6a3a4f2
Commit
f6a3a4f2
authored
Dec 27, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unit Test Cases - User Model
parent
f07b6bcc
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
18 deletions
+45
-18
ExampleTest.php
tests/Unit/ExampleTest.php
+0
-18
UserTest.php
tests/Unit/Models/UserTest.php
+45
-0
No files found.
tests/Unit/ExampleTest.php
deleted
100644 → 0
View file @
f07b6bcc
<?php
namespace
Tests\Unit
;
use
Tests\TestCase
;
class
ExampleTest
extends
TestCase
{
/**
* A basic test example.
*
* @return void
*/
public
function
testBasicTest
()
{
$this
->
assertTrue
(
true
);
}
}
tests/Unit/Models/UserTest.php
0 → 100644
View file @
f6a3a4f2
<?php
namespace
Tests\Unit\Models
;
use
Tests\TestCase
;
class
UserTest
extends
TestCase
{
/** @test */
function
a_user_has_a_roles
()
{
$this
->
assertInstanceOf
(
'Illuminate\Database\Eloquent\Collection'
,
$this
->
admin
->
roles
);
}
/** @test */
function
a_user_has_a_permissions
()
{
$this
->
assertInstanceOf
(
'Illuminate\Database\Eloquent\Collection'
,
$this
->
admin
->
permissions
);
}
/** @test */
function
a_user_has_a_providers
()
{
$this
->
assertInstanceOf
(
'Illuminate\Database\Eloquent\Collection'
,
$this
->
admin
->
providers
);
}
/** @test */
function
a_user_has_a_sessions
()
{
$this
->
assertInstanceOf
(
'Illuminate\Database\Eloquent\Collection'
,
$this
->
admin
->
sessions
);
}
}
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