Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
234
Issues
234
List
Boards
Labels
Service Desk
Milestones
Merge Requests
35
Merge Requests
35
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Security & Compliance
Security & Compliance
Dependency List
Packages
Packages
List
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
522462c2
Commit
522462c2
authored
51 minutes ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): spec tests
parent
5e7f039a
1 merge request
!349
Chore refactor permissions export
Pipeline
#86342837
failed with stages
in 4 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
Spec/Core/Permissions/ManagerSpec.php
Spec/Core/Permissions/ManagerSpec.php
+7
-8
No files found.
Spec/Core/Permissions/ManagerSpec.php
View file @
522462c2
...
...
@@ -32,7 +32,8 @@ class ManagerSpec extends ObjectBehavior
User
$unsubscribedChannel
,
Group
$group
,
EntitiesBuilder
$entitiesBuilder
)
{
)
{
$this
->
user
=
$user
;
$this
->
group
=
$group
;
$this
->
subscribedChannel
=
$subscribedChannel
;
...
...
@@ -64,12 +65,10 @@ class ManagerSpec extends ObjectBehavior
$this
->
entitiesBuilder
->
build
(
$this
->
subscribedChannel
)
->
willReturn
(
$this
->
subscribedChannel
);
$this
->
entitiesBuilder
->
build
(
$this
->
unsubscribedChannel
)
->
willReturn
(
$this
->
unsubscribedChannel
);
$this
->
entitiesBuilder
->
get
([
"user_guid"
=>
1
,
"guids"
=>
[
10
,
11
,
12
,
13
],
"entities"
=>
[],
"guids"
=>
[
10
,
11
,
12
,
13
]
])
->
willReturn
(
$this
->
mockEntities
());
$this
->
entitiesBuilder
->
get
([
"guids"
=>
[
10
,
11
,
12
,
13
]
"guids"
=>
[
10
,
11
,
12
,
13
]
,
])
->
willReturn
(
$this
->
mockEntities
());
$this
->
beConstructedWith
(
$this
->
entitiesBuilder
);
}
...
...
@@ -83,9 +82,9 @@ class ManagerSpec extends ObjectBehavior
{
$permissions
=
$this
->
getList
([
'user_guid'
=>
1
,
'guids'
=>
[
10
,
11
,
12
,
13
],
'entities'
=>
[]
]);
'guids'
=>
[
10
,
11
,
12
,
13
],
'entities'
=>
[]
,
]);
$entities
=
$permissions
->
getEntities
();
$entities
->
shouldHaveKey
(
10
);
$entities
->
shouldHaveKey
(
11
);
...
...
This diff is collapsed.
Click to expand it.
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