From: Brad Jorsch Date: Fri, 8 Dec 2017 16:55:52 +0000 (-0500) Subject: Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat X-Git-Tag: 1.31.0-rc.0~1245^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=92013dcadd1d6263968a497fc338b9ccd5624bf4;p=lhc%2Fweb%2Fwiklou.git Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat When this test was added in Ifb2e392d3, it did not pass the correct number of arguments to ApiFormatXml::recXmlPrint(). Bug: T182368 Change-Id: I63aee08307054137c6b50b6fbd271e03f6d4e45f --- diff --git a/tests/phpunit/includes/debug/MWDebugTest.php b/tests/phpunit/includes/debug/MWDebugTest.php index 5c65483150..25cfd3cb8b 100644 --- a/tests/phpunit/includes/debug/MWDebugTest.php +++ b/tests/phpunit/includes/debug/MWDebugTest.php @@ -110,7 +110,7 @@ class MWDebugTest extends MediaWikiTestCase { $this->assertArrayHasKey( $expectedKey, $data['debuginfo'], "debuginfo has $expectedKey" ); } - $xml = ApiFormatXml::recXmlPrint( 'help', $data ); + $xml = ApiFormatXml::recXmlPrint( 'help', $data, null ); // exception not thrown $this->assertInternalType( 'string', $xml );