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
fe69c9b4
Commit
fe69c9b4
authored
Dec 24, 2017
by
Viral Solani
Committed by
StyleCI Bot
Dec 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply fixes from StyleCI
parent
be50a012
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 @
fe69c9b4
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
namespace
Tests\Feature
;
namespace
Tests\Feature
;
use
App\Events\Frontend\Auth\UserLoggedIn
;
use
Illuminate\Support\Facades\Auth
;
use
Illuminate\Support\Facades\Auth
;
use
Tests\BrowserKitTestCase
;
use
Illuminate\Support\Facades\Event
;
use
Illuminate\Support\Facades\Event
;
use
App\Events\Frontend\Auth\UserLoggedIn
;
use
Tests\BrowserKitTestCase
;
class
AuthTest
extends
BrowserKitTestCase
class
AuthTest
extends
BrowserKitTestCase
{
{
...
@@ -44,22 +44,22 @@ class AuthTest extends BrowserKitTestCase
...
@@ -44,22 +44,22 @@ class AuthTest extends BrowserKitTestCase
public
function
users_can_login
()
public
function
users_can_login
()
{
{
// Make sure our events are fired
// Make sure our events are fired
Event
::
fake
();
Event
::
fake
();
Auth
::
logout
();
Auth
::
logout
();
//User Test
//User Test
$this
->
visit
(
'/login'
)
$this
->
visit
(
'/login'
)
->
type
(
$this
->
user
->
email
,
'email'
)
->
type
(
$this
->
user
->
email
,
'email'
)
->
type
(
'1234'
,
'password'
)
->
type
(
'1234'
,
'password'
)
->
press
(
'Login'
)
->
press
(
'Login'
)
->
see
(
$this
->
user
->
name
)
->
see
(
$this
->
user
->
name
)
->
seePageIs
(
'/dashboard'
);
->
seePageIs
(
'/dashboard'
);
Auth
::
logout
();
Auth
::
logout
();
//Admin Test
//Admin Test
$this
->
visit
(
'/login'
)
$this
->
visit
(
'/login'
)
->
type
(
$this
->
admin
->
email
,
'email'
)
->
type
(
$this
->
admin
->
email
,
'email'
)
->
type
(
'1234'
,
'password'
)
->
type
(
'1234'
,
'password'
)
->
press
(
'Login'
)
->
press
(
'Login'
)
...
@@ -67,6 +67,6 @@ class AuthTest extends BrowserKitTestCase
...
@@ -67,6 +67,6 @@ class AuthTest extends BrowserKitTestCase
->
see
(
$this
->
admin
->
first_name
)
->
see
(
$this
->
admin
->
first_name
)
->
see
(
'Access Management'
);
->
see
(
'Access Management'
);
Event
::
assertDispatched
(
UserLoggedIn
::
class
);
Event
::
assertDispatched
(
UserLoggedIn
::
class
);
}
}
}
}
\ No newline at end of file
tests/TestCase.php
View file @
fe69c9b4
...
@@ -53,7 +53,6 @@ abstract class TestCase extends BaseTestCase
...
@@ -53,7 +53,6 @@ abstract class TestCase extends BaseTestCase
/**
/**
* Set up tests.
* Set up tests.
*/
*/
public
function
setUp
()
public
function
setUp
()
{
{
parent
::
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