/**
  * @test
  */
 public function withMultipleLevelsOfAccessRightsTheClosestOneDeterminesInheritedPermission()
 {
     $this->rules->addRule(CreateRule::allow(Situation::userViewPost()));
     $this->rules->addRule(CreateRule::deny(Situation::userViewPostWithCategoryIdEquals5()));
     $this->assertFalse($this->permissionResolver->isAllowedByInheritance(Situation::userViewPostWithPostCategoryIdEquals5AndWordCountGreaterThan100()));
 }