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
4249416f
Commit
4249416f
authored
Dec 24, 2017
by
Viral Solani
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
https://github.com/viralsolani/laravel-adminpanel
into develop
parents
c19d6d0b
a245750a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
12 deletions
+11
-12
AuthTest.php
tests/Feature/AuthTest.php
+11
-11
TestCase.php
tests/TestCase.php
+0
-1
No files found.
tests/Feature/AuthTest.php
View file @
4249416f
...
...
@@ -2,10 +2,10 @@
namespace
Tests\Feature
;
use
App\Events\Frontend\Auth\UserLoggedIn
;
use
Illuminate\Support\Facades\Auth
;
use
Tests\BrowserKitTestCase
;
use
Illuminate\Support\Facades\Event
;
use
App\Events\Frontend\Auth\UserLoggedIn
;
use
Tests\BrowserKitTestCase
;
class
AuthTest
extends
BrowserKitTestCase
{
...
...
@@ -44,22 +44,22 @@ class AuthTest extends BrowserKitTestCase
public
function
users_can_login
()
{
// Make sure our events are fired
Event
::
fake
();
Event
::
fake
();
Auth
::
logout
();
Auth
::
logout
();
//User Test
$this
->
visit
(
'/login'
)
//User Test
$this
->
visit
(
'/login'
)
->
type
(
$this
->
user
->
email
,
'email'
)
->
type
(
'1234'
,
'password'
)
->
press
(
'Login'
)
->
see
(
$this
->
user
->
name
)
->
seePageIs
(
'/dashboard'
);
Auth
::
logout
();
Auth
::
logout
();
//Admin Test
$this
->
visit
(
'/login'
)
//Admin Test
$this
->
visit
(
'/login'
)
->
type
(
$this
->
admin
->
email
,
'email'
)
->
type
(
'1234'
,
'password'
)
->
press
(
'Login'
)
...
...
@@ -67,6 +67,6 @@ class AuthTest extends BrowserKitTestCase
->
see
(
$this
->
admin
->
first_name
)
->
see
(
'Access Management'
);
Event
::
assertDispatched
(
UserLoggedIn
::
class
);
Event
::
assertDispatched
(
UserLoggedIn
::
class
);
}
}
\ No newline at end of file
}
tests/TestCase.php
View file @
4249416f
...
...
@@ -53,7 +53,6 @@ abstract class TestCase extends BaseTestCase
/**
* Set up tests.
*/
public
function
setUp
()
{
parent
::
setUp
();
...
...
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