Differential D18703 Diff 44908 src/applications/base/controller/__tests__/PhabricatorAccessControlTestCase.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/controller/__tests__/PhabricatorAccessControlTestCase.php
| <?php | <?php | ||||
| final class PhabricatorAccessControlTestCase extends PhabricatorTestCase { | final class PhabricatorAccessControlTestCase extends PhabricatorTestCase { | ||||
| protected function getPhabricatorTestCaseConfiguration() { | protected function getPhabricatorTestCaseConfiguration() { | ||||
| return array( | return array( | ||||
| self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, | self::PHABRICATOR_TESTCONFIG_BUILD_STORAGE_FIXTURES => true, | ||||
| ); | ); | ||||
| } | } | ||||
| public function testControllerAccessControls() { | public function testControllerAccessControls() { | ||||
| $root = dirname(phutil_get_library_root('phabricator')); | $root = dirname(phutil_get_library_root('phabricator')); | ||||
| require_once $root.'/support/PhabricatorStartup.php'; | require_once $root.'/support/startup/PhabricatorStartup.php'; | ||||
| $application_configuration = new AphrontDefaultApplicationConfiguration(); | $application_configuration = new AphrontDefaultApplicationConfiguration(); | ||||
| $host = 'meow.example.com'; | $host = 'meow.example.com'; | ||||
| $_SERVER['REQUEST_METHOD'] = 'GET'; | $_SERVER['REQUEST_METHOD'] = 'GET'; | ||||
| $request = id(new AphrontRequest($host, '/')) | $request = id(new AphrontRequest($host, '/')) | ||||
| ▲ Show 20 Lines • Show All 259 Lines • Show Last 20 Lines | |||||