ParserTests: Make sure WikiPage::doEditContent() succeeds
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 14 Sep 2016 00:22:44 +0000 (17:22 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 14 Sep 2016 00:22:44 +0000 (17:22 -0700)
commitf5cb6c64c13e1a676911d6349ca7e9443e0727b5
treebfb70061bf9227d923690bccf1b9f2d9b9fd4064
parent25a46cae8a6a6f3538d57797c3c3b7a49d6ef770
ParserTests: Make sure WikiPage::doEditContent() succeeds

If a parser test tries to create a page with invalid content (rejected
by Content::prepareSave() or Content::isValid()), throw an exception
instead of silently failing.

Change-Id: I89642604216699f27884120b3c297a0b277c47a6
tests/parser/ParserTestRunner.php