mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-12-18 19:01:28 +00:00
Ignore value of MW_PHPUNIT_TEST
To match use of this constant everywhere else. Change-Id: Ia173b2b7217ffa8b924d9f164da89bd3b547c452
This commit is contained in:
parent
baba8154eb
commit
35b7339152
|
@ -62,7 +62,7 @@ class EchoAttributeManager {
|
||||||
global $wgEchoNotifications, $wgEchoNotificationCategories;
|
global $wgEchoNotifications, $wgEchoNotificationCategories;
|
||||||
|
|
||||||
// Unit test may alter the global data for test purpose
|
// Unit test may alter the global data for test purpose
|
||||||
if ( defined( 'MW_PHPUNIT_TEST' ) && MW_PHPUNIT_TEST ) {
|
if ( defined( 'MW_PHPUNIT_TEST' ) ) {
|
||||||
return new self( $wgEchoNotifications, $wgEchoNotificationCategories );
|
return new self( $wgEchoNotifications, $wgEchoNotificationCategories );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue