@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+4 -1
-1
src/applications/base/controller/__tests__/PhabricatorAccessControlTestCase.php
··· 56 56 $env->overrideEnvConfig('phabricator.base-uri', 'http://'.$host); 57 57 $env->overrideEnvConfig('policy.allow-public', false); 58 58 $env->overrideEnvConfig('auth.require-email-verification', false); 59 - $env->overrideEnvConfig('auth.email-domains', array()); 60 59 $env->overrideEnvConfig('security.require-multi-factor-auth', false); 61 60 62 61
+4
src/infrastructure/testing/PhabricatorTestCase.php
··· 120 120 'phabricator.base-uri', 121 121 'http://phabricator.example.com'); 122 122 123 + $this->env->overrideEnvConfig( 124 + 'auth.email-domains', 125 + array()); 126 + 123 127 // Tests do their own stubbing/voiding for events. 124 128 $this->env->overrideEnvConfig('phabricator.silent', false); 125 129 }