@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.

When running unit tests, ignore any custom task fields

Summary:
If you have `maniphest.custom-field-definitions` set to include "required" fields, a bunch of tests which create tasks can fail.

To avoid this, reset this config while running tests.

This mechanism should probably be more general (e.g., reset all config by default, only whitelist some config) but just fix this for now since it's a one-liner and doesn't make eventual cleanup any harder.

Test Plan: Ran `arc unit`, hitting tests that create tasks.

Reviewers: chad, 20after4

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D17595

+4
+4
src/infrastructure/testing/PhabricatorTestCase.php
··· 128 128 $this->env->overrideEnvConfig('phabricator.silent', false); 129 129 130 130 $this->env->overrideEnvConfig('cluster.read-only', false); 131 + 132 + $this->env->overrideEnvConfig( 133 + 'maniphest.custom-field-definitions', 134 + array()); 131 135 } 132 136 133 137 protected function didRunTests() {