Fix CommentStoreComment RawMessage construction
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Wed, 13 Feb 2019 10:44:06 +0000 (11:44 +0100)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 13 Feb 2019 16:17:10 +0000 (11:17 -0500)
commitd5ed0163f25d0bb42c33b612021154daae9396af
tree137320b380dc8613d37a1e426dc702c523686ac2
parent4091905d5b01e26c4c8b9d790f7f06d1c0bc3180
Fix CommentStoreComment RawMessage construction

If a CommentStoreComment is constructed without a Message argument, then
the RawMessage it uses instead should specify the comment text as a
plain-text parameter, not as a regular parameter: we don’t want any
syntax in the text to be interpreted at the Message level.

Change-Id: If14debde2bceae695c8955604ee96bd5005d8b66
includes/CommentStoreComment.php
tests/phpunit/includes/CommentStoreCommentTest.php [new file with mode: 0644]
tests/phpunit/includes/CommentStoreTest.php