[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/policy/__tests__/ -> PhabricatorPolicyTestCase.php (summary)

(no description)

File Size: 335 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 15 functions

  testPublicPolicyEnabled()
  testPublicPolicyDisabled()
  testUsersPolicy()
  testAdminPolicy()
  testNoOnePolicy()
  testOffsets()
  testLimits()
  testOmnipotence()
  testRejectInvalidPolicy()
  testInvalidPolicyVisibleByOmnipotentUser()
  testAllQueriesBelongToActualApplications()
  testMultipleCapabilities()
  expectVisibility()
  buildObject()
  buildUser()

Functions
Functions that are not part of a class:

testPublicPolicyEnabled()   X-Ref
Verify that any user can view an object with POLICY_PUBLIC.


testPublicPolicyDisabled()   X-Ref
Verify that POLICY_PUBLIC is interpreted as POLICY_USER when public
policies are disallowed.


testUsersPolicy()   X-Ref
Verify that any logged-in user can view an object with POLICY_USER, but
logged-out users can not.


testAdminPolicy()   X-Ref
Verify that only administrators can view an object with POLICY_ADMIN.


testNoOnePolicy()   X-Ref
Verify that no one can view an object with POLICY_NOONE.


testOffsets()   X-Ref
Test offset-based filtering.


testLimits()   X-Ref
Test limits.


testOmnipotence()   X-Ref
Test that omnipotent users bypass policies.


testRejectInvalidPolicy()   X-Ref
Test that invalid policies reject viewers of all types.


testInvalidPolicyVisibleByOmnipotentUser()   X-Ref
An omnipotent user should be able to see even objects with invalid
policies.


testAllQueriesBelongToActualApplications()   X-Ref
No description

testMultipleCapabilities()   X-Ref
No description

expectVisibility(PhabricatorPolicyTestObject $object,array $map,$description)   X-Ref
Test an object for visibility across multiple user specifications.


buildObject($policy)   X-Ref
Build a test object to spec.


buildUser($spec)   X-Ref
Build a test user to spec.




Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1