コード例 #1
0
 /**
  * @param array $accessRoles
  * @param boolean $expectedResult
  * @test
  * @dataProvider hasAccessRestrictionsDataProvider
  */
 public function hasAccessRestrictionsTests($accessRoles, $expectedResult)
 {
     $this->nodeData->_set('accessRoles', $accessRoles);
     if ($expectedResult === true) {
         $this->assertTrue($this->nodeData->hasAccessRestrictions());
     } else {
         $this->assertFalse($this->nodeData->hasAccessRestrictions());
     }
 }
コード例 #2
0
ファイル: Node.php プロジェクト: radmiraal/TYPO3.TYPO3CR
 /**
  * Tells if a node, in general,  has access restrictions, independent of the
  * current security context.
  *
  * @return boolean
  * @api
  */
 public function hasAccessRestrictions()
 {
     return $this->nodeData->hasAccessRestrictions();
 }