From 16b82d0ef0a695604d412b110fd6c5c62d2f02d2 Mon Sep 17 00:00:00 2001 From: Amir Sarabadani Date: Mon, 8 Jul 2019 14:52:06 +0200 Subject: [PATCH] Run SpecialPageFatalTest with lang=qqx SpecialPageFatalTest:testSpecialPageDoesNotFatal is one of the slowest tests (specially running Special:Version) due to the fact that it needs to translate so many message keys. 3206ms to run SpecialPageFatalTest:testSpecialPageDoesNotFatal with data set "Version" Running with lang=qqx would ensure that the special doesn't fatal but also avoid unnecessary message translations Change-Id: I8ff715ac539e93915c98f7209523df1b3ea3a7e8 --- tests/phpunit/structure/SpecialPageFatalTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/structure/SpecialPageFatalTest.php b/tests/phpunit/structure/SpecialPageFatalTest.php index 3fa31fe8b5..136611928b 100644 --- a/tests/phpunit/structure/SpecialPageFatalTest.php +++ b/tests/phpunit/structure/SpecialPageFatalTest.php @@ -30,7 +30,7 @@ class SpecialPageFatalTest extends MediaWikiTestCase { $user = User::newFromName( 'UTSysop' ); try { - $executor->executeSpecialPage( $page, '', null, null, $user ); + $executor->executeSpecialPage( $page, '', null, 'qqx', $user ); } catch ( \PHPUnit\Framework\Error\Deprecated $deprecated ) { // Allow deprecation, // this test want to check fatals or other things breaking the extension -- 2.20.1