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
690656c6
Unverified
Commit
690656c6
authored
Jan 03, 2018
by
Viral Solani
Committed by
GitHub
Jan 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #135 from viralsolani/analysis-XlQnwr
Apply fixes from StyleCI
parents
79c3758e
aacc4c3a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
PermissionRepository.php
...tories/Backend/Access/Permission/PermissionRepository.php
+1
-0
ManagePermissionsTest.php
tests/Feature/Backend/ManagePermissionsTest.php
+3
-3
No files found.
app/Repositories/Backend/Access/Permission/PermissionRepository.php
View file @
690656c6
...
...
@@ -109,6 +109,7 @@ class PermissionRepository extends BaseRepository
DB
::
transaction
(
function
()
use
(
$permission
)
{
if
(
$permission
->
delete
())
{
event
(
new
PermissionDeleted
(
$permission
));
return
true
;
}
...
...
tests/Feature/Backend/ManagePermissionsTest.php
View file @
690656c6
...
...
@@ -2,12 +2,12 @@
namespace
Tests\Feature\Backend
;
use
Tests\TestCase
;
use
Illuminate\Support\Facades\Event
;
use
App\Models\Access\Permission\Permission
;
use
App\Events\Backend\Access\Permission\PermissionCreated
;
use
App\Events\Backend\Access\Permission\PermissionDeleted
;
use
App\Events\Backend\Access\Permission\PermissionUpdated
;
use
App\Models\Access\Permission\Permission
;
use
Illuminate\Support\Facades\Event
;
use
Tests\TestCase
;
class
ManagePermissionsTest
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