From: Timo Tijhof Date: Wed, 22 Feb 2017 02:51:45 +0000 (-0800) Subject: resourceloader: Fix testMakeModuleResponseError() failure on Travis X-Git-Tag: 1.31.0-rc.0~4030^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24ze_article%22%29%20.%20%22?a=commitdiff_plain;h=22b112aedab8c248f9a2a92a2f910102578cb8ec;p=lhc%2Fweb%2Fwiklou.git resourceloader: Fix testMakeModuleResponseError() failure on Travis > 1) ResourceLoaderTest::testMakeModuleResponseError > Failed asserting that '[e08c982d974548127cb5d7ce] Fatal exception of type Exception' > matches PCRE pattern "/Ferry not found/". > .../ResourceLoaderTest.php:519 This happened on Travis CI, because ResourceLoader::formatException() behaves differently based on $wgShowExceptionDetails. Which is enabled in Vagrant and Jenkins, but disabled by default (and thus in Travis CI builds). Bug: T75176 Change-Id: If15dd03213703b7b6ff899cad5e5569e2515b378 --- diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php index cde1e5abb3..e0a82d06af 100644 --- a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php +++ b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php @@ -18,6 +18,7 @@ class ResourceLoaderTest extends ResourceLoaderTestCase { // to avoid notices during testMakeModuleResponse for missing // wgResourceLoaderLESSVars keys in extension hooks. 'wgHooks' => [], + 'wgShowExceptionDetails' => true, ] ); }