mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Optimized SourceMemberInformation
This commit is contained in:
@@ -75,7 +75,7 @@ class RightCheckerTest extends TestCase
|
||||
public function testSecondDimension(): void
|
||||
{
|
||||
$secondSource = $this->getSourceMock();
|
||||
$this->source->getMemberRelation()->getMembers()->add($secondSource);
|
||||
$this->source->getMemberRelation()->getMembers()->add($secondSource->getMemberRelation());
|
||||
$granted = $this->rightManager->isGranted($this->layer, $this->type, $secondSource);
|
||||
$this->assertTrue($granted);
|
||||
$notGranted = $this->rightManager->isGranted(LayerType::SOURCE, $this->type, $secondSource);
|
||||
@@ -91,8 +91,8 @@ class RightCheckerTest extends TestCase
|
||||
{
|
||||
$thirdSource = $this->getSourceMock();
|
||||
$secondSource = $this->getSourceMock();
|
||||
$secondSource->getMemberRelation()->getMembers()->add($thirdSource);
|
||||
$this->source->getMemberRelation()->getMembers()->add($secondSource);
|
||||
$secondSource->getMemberRelation()->getMembers()->add($thirdSource->getMemberRelation());
|
||||
$this->source->getMemberRelation()->getMembers()->add($secondSource->getMemberRelation());
|
||||
$granted = $this->rightManager->isGranted($this->layer, $this->type, $thirdSource);
|
||||
$this->assertTrue($granted);
|
||||
$notGranted = $this->rightManager->isGranted(LayerType::SOURCE, $this->type, $thirdSource);
|
||||
|
Reference in New Issue
Block a user