mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Always override auth.email-domains
when running unit tests
Summary: Fixes T9689, Always override `auth.email-domains` when running unit tests Test Plan: - Set `auth.email-domains` - Run `arc unit --everything`. Observe no errors. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin Maniphest Tasks: T9689 Differential Revision: https://secure.phabricator.com/D14456
This commit is contained in:
parent
3747a35476
commit
64ad44cffb
2 changed files with 4 additions and 1 deletions
|
@ -56,7 +56,6 @@ final class PhabricatorAccessControlTestCase extends PhabricatorTestCase {
|
|||
$env->overrideEnvConfig('phabricator.base-uri', 'http://'.$host);
|
||||
$env->overrideEnvConfig('policy.allow-public', false);
|
||||
$env->overrideEnvConfig('auth.require-email-verification', false);
|
||||
$env->overrideEnvConfig('auth.email-domains', array());
|
||||
$env->overrideEnvConfig('security.require-multi-factor-auth', false);
|
||||
|
||||
|
||||
|
|
|
@ -120,6 +120,10 @@ abstract class PhabricatorTestCase extends PhutilTestCase {
|
|||
'phabricator.base-uri',
|
||||
'http://phabricator.example.com');
|
||||
|
||||
$this->env->overrideEnvConfig(
|
||||
'auth.email-domains',
|
||||
array());
|
||||
|
||||
// Tests do their own stubbing/voiding for events.
|
||||
$this->env->overrideEnvConfig('phabricator.silent', false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue