right = new Right(); $this->source = $this->getSourceMock(); $this->right->setSource($this->source); $this->rightManager = new RightChecker($this->right); } public function testFirstDimension():void{ $layer = LayerType::RELATION; $type = RightType::READ; $this->right->setType($type); $this->right->setLayer($layer); $granted = $this->rightManager->isGranted($layer, $type, $this->source); $this->assertTrue($granted); $notGranted = $this->rightManager->isGranted(LayerType::SOURCE, $type, $this->source); $this->assertFalse($notGranted); $notGranted2 = $this->rightManager->isGranted($layer, RightType::WRITE, $this->source); $this->assertFalse($notGranted2); $this->right->setGrant(false); $notGranted3 = $this->rightManager->isGranted($layer, $type, $this->source); $this->assertFalse($notGranted3); } // public function testSecondDimension():void{ // } }