From 92013dcadd1d6263968a497fc338b9ccd5624bf4 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Fri, 8 Dec 2017 11:55:52 -0500 Subject: [PATCH] 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 --- tests/phpunit/includes/debug/MWDebugTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1