protected function getPhabricatorTestCaseConfiguration()Inherited
wild |
private function getComputedConfiguration()Inherited
wild |
public function willRunTestCases($test_cases)Inherited
array | $test_cases |
wild |
public function didRunTestCases($test_cases)Inherited
array | $test_cases |
wild |
protected function willRunTests()Inherited
wild |
protected function didRunTests()Inherited
wild |
protected function willRunOneTest($test)Inherited
$test |
wild |
protected function didRunOneTest($test)Inherited
$test |
wild |
protected function newStorageFixture()Inherited
wild |
protected function getNextObjectSeed()Inherited
Returns an integer seed to use when building unique identifiers (e.g., non-colliding usernames). The seed is unstable and its value will change between test runs, so your tests must not rely on it.
int | A unique integer. |
protected function generateNewTestUser()Inherited
wild |
public static function assertExecutingUnitTests()Inherited
Throws unless tests are currently executing. This method can be used to guard code which is specific to unit tests and should not normally be reachable.
If tests aren't currently being executed, throws an exception.
wild |
protected function requireBinaryForTest($binary)Inherited
$binary |
wild |
protected function newContentSource()Inherited
wild |
public function testPublicPolicyEnabled()
Verify that any user can view an object with POLICY_PUBLIC.
wild |
public function testPublicPolicyDisabled()
Verify that POLICY_PUBLIC is interpreted as POLICY_USER when public policies are disallowed.
wild |
public function testUsersPolicy()
Verify that any logged-in user can view an object with POLICY_USER, but logged-out users can not.
wild |
public function testAdminPolicy()
Verify that only administrators can view an object with POLICY_ADMIN.
wild |
public function testNoOnePolicy()
Verify that no one can view an object with POLICY_NOONE.
wild |
public function testOffsets()
Test offset-based filtering.
wild |
public function testLimits()
Test limits.
wild |
public function testOmnipotence()
Test that omnipotent users bypass policies.
wild |
public function testRejectInvalidPolicy()
Test that invalid policies reject viewers of all types.
wild |
public function testExtendedPolicies()
Test that extended policies work.
wild |
public function testExtendedPolicyCycles()
Test that cyclic extended policies are arrested properly.
wild |
public function testBulkExtendedPolicies()
Test bulk checks of extended policies.
This is testing an issue with extended policy filtering which allowed unusual inputs to slip objects through the filter. See D14993.
wild |
public function testInvalidPolicyVisibleByOmnipotentUser()
An omnipotent user should be able to see even objects with invalid policies.
wild |
public function testAllQueriesBelongToActualApplications()
wild |
public function testMultipleCapabilities()
wild |
public function testPolicyStrength()
wild |
private function expectVisibility($object, $map, $description)
Test an object for visibility across multiple user specifications.
PhabricatorPolicyTestObject | $object | |
array | $map | |
$description |
wild |
private function buildObject($policy)
Build a test object to spec.
$policy |
wild |
private function buildUser($spec)
Build a test user to spec.
$spec |
wild |