Ignore value of MW_PHPUNIT_TEST

To match use of this constant everywhere else.

Change-Id: Ia173b2b7217ffa8b924d9f164da89bd3b547c452
This commit is contained in:
Timo Tijhof 2016-03-14 16:44:33 +00:00
parent baba8154eb
commit 35b7339152

View file

@ -62,7 +62,7 @@ class EchoAttributeManager {
global $wgEchoNotifications, $wgEchoNotificationCategories;
// 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 );
}