/** * @test */ public function userActionIsDisallowedIfPermissionIsNotSet() { $this->prepareSubject(array()); $this->subject->setEvaluatePermissions(true); $this->subject->setUserPermissions(array('readFolder' => true)); $this->assertFalse($this->subject->checkUserActionPermission('write', 'folder')); }
/** * @test */ public function userActionIsDisallowedIfPermissionIsNotSet() { $this->prepareFixture(array()); $this->fixture->setEvaluatePermissions(TRUE); $this->fixture->setUserPermissions(array('readFolder' => TRUE)); $this->assertFalse($this->fixture->checkUserActionPermission('write', 'folder')); }