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

Disable notifications while running unit tests

Summary:
Currently, we'll try to publish notifications while running tests. This is at best unnecessary and at worst problematic (we don't stub out the server).

For now, just never publish them.

Test Plan: Ran unit tests with notifications enabled but the server down and didn't get a bunch of warnings.

Reviewers: btrahan

Reviewed By: btrahan

Subscribers: epriestley

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

+7
+1
src/__phutil_library_map__.php
··· 5055 5055 'PhabricatorFlaggableInterface', 5056 5056 'PhabricatorTokenReceiverInterface', 5057 5057 'PhabricatorProjectInterface', 5058 + 'PhabricatorDestructibleInterface', 5058 5059 ), 5059 5060 'PhabricatorSlowvotePollController' => 'PhabricatorSlowvoteController', 5060 5061 'PhabricatorSlowvotePollPHIDType' => 'PhabricatorPHIDType',
+6
src/infrastructure/testing/PhabricatorTestCase.php
··· 110 110 'phabricator.application-settings', 111 111 array()); 112 112 113 + // We can't stub this service right now, and it's not generally useful 114 + // to publish notifications about test execution. 115 + $this->env->overrideEnvConfig( 116 + 'notification.enabled', 117 + false); 118 + 113 119 // TODO: Remove this when we remove "releeph.installed". 114 120 $this->env->overrideEnvConfig('releeph.installed', true); 115 121 }