jenkins-bot has submitted this change and it was merged.

Change subject: JsonSchemaTest: Update test to not use getHtml that no longer 
exists
......................................................................


JsonSchemaTest: Update test to not use getHtml that no longer exists

Change-Id: I85ce5aaaeb587e59e58520a281a4110fe6aa005d
---
M tests/JsonSchemaTest.php
1 file changed, 8 insertions(+), 3 deletions(-)

Approvals:
  Krinkle: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/tests/JsonSchemaTest.php b/tests/JsonSchemaTest.php
index 841dd1d..972d74f 100644
--- a/tests/JsonSchemaTest.php
+++ b/tests/JsonSchemaTest.php
@@ -73,8 +73,13 @@
         * @covers JsonSchemaContent::getHighlightHtml
         */
        function testGetHighlightHtml() {
-               $evil = new JsonSchemaContent( self::EVIL_JSON );
-               $html = $evil->getHtml();
-               $this->assertContains( '<script>', $html, 'HTML output 
should be escaped' );
+               $content = new JsonSchemaContent( self::EVIL_JSON );
+               $out = $content->getParserOutput(
+                       Title::newFromText( 'Test' ),
+                       null,
+                       null,
+                       /* html */ true
+               );
+               $this->assertContains( '<script>', $out->getText(), 'HTML 
output should be escaped' );
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/186112
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I85ce5aaaeb587e59e58520a281a4110fe6aa005d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EventLogging
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to