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
6122c375
Unverified
Commit
6122c375
authored
Jan 02, 2018
by
Viral Solani
Committed by
GitHub
Jan 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #128 from viralsolani/analysis-qrKPa9
Apply fixes from StyleCI
parents
969129f4
44701ee0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
ManageUsersTest.php
tests/Feature/Backend/ManageUsersTest.php
+13
-15
No files found.
tests/Feature/Backend/ManageUsersTest.php
View file @
6122c375
...
@@ -2,21 +2,21 @@
...
@@ -2,21 +2,21 @@
namespace
Tests\Feature\Backend
;
namespace
Tests\Feature\Backend
;
use
Carbon\Carbon
;
use
Tests\TestCase
;
use
App\Models\Access\Role\Role
;
use
App\Models\Access\User\User
;
use
Illuminate\Support\Facades\Event
;
use
App\Models\Access\Permission\Permission
;
use
Illuminate\Support\Facades\Notification
;
use
App\Events\Backend\Access\User\UserCreated
;
use
App\Events\Backend\Access\User\UserCreated
;
use
App\Events\Backend\Access\User\UserDeleted
;
use
App\Events\Backend\Access\User\UserUpdated
;
use
App\Events\Backend\Access\User\UserRestored
;
use
App\Events\Backend\Access\User\UserDeactivated
;
use
App\Events\Backend\Access\User\UserDeactivated
;
use
App\Events\Backend\Access\User\User
Reactiva
ted
;
use
App\Events\Backend\Access\User\User
Dele
ted
;
use
App\Events\Backend\Access\User\UserPermanentlyDeleted
;
use
App\Events\Backend\Access\User\UserPermanentlyDeleted
;
use
App\Events\Backend\Access\User\UserReactivated
;
use
App\Events\Backend\Access\User\UserRestored
;
use
App\Events\Backend\Access\User\UserUpdated
;
use
App\Models\Access\Permission\Permission
;
use
App\Models\Access\Role\Role
;
use
App\Models\Access\User\User
;
use
App\Notifications\Frontend\Auth\UserNeedsConfirmation
;
use
App\Notifications\Frontend\Auth\UserNeedsConfirmation
;
use
Carbon\Carbon
;
use
Illuminate\Support\Facades\Event
;
use
Illuminate\Support\Facades\Notification
;
use
Tests\TestCase
;
class
ManageUsersTest
extends
TestCase
class
ManageUsersTest
extends
TestCase
{
{
...
@@ -333,7 +333,7 @@ class ManageUsersTest extends TestCase
...
@@ -333,7 +333,7 @@ class ManageUsersTest extends TestCase
Event
::
assertDispatched
(
UserPermanentlyDeleted
::
class
);
Event
::
assertDispatched
(
UserPermanentlyDeleted
::
class
);
}
}
/** @test */
/** @test */
public
function
a_user_can_mark_user_as_inactive_and_active
()
public
function
a_user_can_mark_user_as_inactive_and_active
()
{
{
Event
::
fake
();
Event
::
fake
();
...
@@ -344,7 +344,7 @@ class ManageUsersTest extends TestCase
...
@@ -344,7 +344,7 @@ class ManageUsersTest extends TestCase
$this
->
assertDatabaseHas
(
config
(
'access.users_table'
),
[
'id'
=>
$this
->
user
->
id
,
'status'
=>
0
]);
$this
->
assertDatabaseHas
(
config
(
'access.users_table'
),
[
'id'
=>
$this
->
user
->
id
,
'status'
=>
0
]);
$this
->
actingAs
(
$this
->
admin
)
$this
->
actingAs
(
$this
->
admin
)
->
get
(
route
(
'admin.access.user.mark'
,
[
$this
->
user
,
1
]))
->
get
(
route
(
'admin.access.user.mark'
,
[
$this
->
user
,
1
]))
->
assertSessionHas
([
'flash_success'
=>
trans
(
'alerts.backend.users.updated'
)]);
->
assertSessionHas
([
'flash_success'
=>
trans
(
'alerts.backend.users.updated'
)]);
...
@@ -353,6 +353,4 @@ class ManageUsersTest extends TestCase
...
@@ -353,6 +353,4 @@ class ManageUsersTest extends TestCase
Event
::
assertDispatched
(
UserDeactivated
::
class
);
Event
::
assertDispatched
(
UserDeactivated
::
class
);
Event
::
assertDispatched
(
UserReactivated
::
class
);
Event
::
assertDispatched
(
UserReactivated
::
class
);
}
}
}
}
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