Commit 522462c2 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): spec tests

parent 5e7f039a
1 merge request!349Chore refactor permissions export
Pipeline #86342837 failed with stages
in 4 minutes and 29 seconds
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment