Commit 8308fd1d authored by Brian Hatchet's avatar Brian Hatchet :speech_balloon:

Yeah for unit tests

1 merge request!335Feat/permissions on entities 737
Pipeline #83945226 failed with stages
in 4 minutes and 4 seconds
......@@ -53,6 +53,7 @@ class FeedSyncEntity
$this->entity = $entity;
$this->accessId = $entity->getAccessId();
$this->type = $entity->getType();
return $this;
}
/** @var type */
......
......@@ -75,6 +75,10 @@ class ManagerSpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(5000);
$entity1->getType()
->shouldBeCalled()
->willReturn('object:image');
$entity1->getAccessId()
->shouldBeCalled()
->willReturn(Access::PUBLIC);
......@@ -115,6 +119,10 @@ class ManagerSpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(5001);
$entity2->getType()
->shouldBeCalled()
->willReturn('activity');
$entity2->getAccessId()
->shouldBeCalled()
->willReturn(Access::PUBLIC);
......@@ -183,6 +191,10 @@ class ManagerSpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(Access::PUBLIC);
$entity1->getType()
->shouldBeCalled()
->willReturn('activity');
$entity1->getOwnerGUID()
->shouldBeCalled()
->willReturn(1000);
......@@ -220,6 +232,9 @@ class ManagerSpec extends ObjectBehavior
->shouldBeCalled()
->willReturn(5001);
$entity2->getType()
->shouldBeCalled()
->willReturn('activity');
$entity2->getAccessId()
->shouldBeCalled()
......
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