QChris has uploaded a new change for review.
https://gerrit.wikimedia.org/r/180781
Change subject: Make PHPCS pass on JsonContentTest
......................................................................
Make PHPCS pass on JsonContentTest
Change-Id: I1054d7d0e903e3be7cb815035dddb0f34bcd6334
---
M tests/phpunit/includes/content/JsonContentTest.php
1 file changed, 12 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/81/180781/1
diff --git a/tests/phpunit/includes/content/JsonContentTest.php
b/tests/phpunit/includes/content/JsonContentTest.php
index 0ad8ecc..0df8d40 100644
--- a/tests/phpunit/includes/content/JsonContentTest.php
+++ b/tests/phpunit/includes/content/JsonContentTest.php
@@ -74,7 +74,11 @@
*/
public function testPreSaveTransform( $input, $transformed ) {
$obj = new JsonContent( $input );
- $newObj = $obj->preSaveTransform( $this->getMockTitle(),
$this->getMockUser(), $this->getMockParserOptions() );
+ $newObj = $obj->preSaveTransform(
+ $this->getMockTitle(),
+ $this->getMockUser(),
+ $this->getMockParserOptions()
+ );
$this->assertTrue( $newObj->equals( new JsonContent(
$transformed ) ) );
}
@@ -99,11 +103,13 @@
return array(
array(
(object)array(),
- '<table class="mw-json"><tbody><tr><td
class="mw-json-empty">Empty object</td></tr></tbody></table>'
+ '<table class="mw-json"><tbody><tr><td
class="mw-json-empty">Empty object</td></tr>' .
+ '</tbody></table>'
),
array(
(object)array( 'foo' ),
- '<table
class="mw-json"><tbody><tr><th>0</th><td
class="value">"foo"</td></tr></tbody></table>'
+ '<table
class="mw-json"><tbody><tr><th>0</th><td
class="value">"foo"</td></tr>' .
+ '</tbody></table>'
),
array(
(object)array( 'foo', 'bar' ),
@@ -125,7 +131,9 @@
),
array(
(object)array(
'<script>alert("evil!")</script>'),
- '<table
class="mw-json"><tbody><tr><th>0</th><td
class="value">"<script>alert("evil!")</script>"</td></tr></tbody></table>',
+ '<table
class="mw-json"><tbody><tr><th>0</th><td class="value">"' .
+
'<script>alert("evil!")</script>"' .
+ '</td></tr></tbody></table>',
),
);
}
--
To view, visit https://gerrit.wikimedia.org/r/180781
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1054d7d0e903e3be7cb815035dddb0f34bcd6334
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: QChris <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits