Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/testing/PhabricatorTestCase.php
| Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | protected function willRunTests() { | ||||
| // Reset application settings to defaults, particularly policies. | // Reset application settings to defaults, particularly policies. | ||||
| $this->env->overrideEnvConfig( | $this->env->overrideEnvConfig( | ||||
| 'phabricator.application-settings', | 'phabricator.application-settings', | ||||
| array()); | array()); | ||||
| // We can't stub this service right now, and it's not generally useful | // We can't stub this service right now, and it's not generally useful | ||||
| // to publish notifications about test execution. | // to publish notifications about test execution. | ||||
| $this->env->overrideEnvConfig( | $this->env->overrideEnvConfig( | ||||
| 'notification.enabled', | 'notification.servers', | ||||
| false); | array()); | ||||
| $this->env->overrideEnvConfig( | $this->env->overrideEnvConfig( | ||||
| 'phabricator.base-uri', | 'phabricator.base-uri', | ||||
| 'http://phabricator.example.com'); | 'http://phabricator.example.com'); | ||||
| $this->env->overrideEnvConfig( | $this->env->overrideEnvConfig( | ||||
| 'auth.email-domains', | 'auth.email-domains', | ||||
| array()); | array()); | ||||
| ▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines | |||||