Fix MWDebugTest::testAppendDebugInfoToApiResultXmlFormat
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 8 Dec 2017 16:55:52 +0000 (11:55 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Fri, 8 Dec 2017 16:55:52 +0000 (11:55 -0500)
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

index 5c65483..25cfd3c 100644 (file)
@@ -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 );