(bug 42638) Fix API action=options&reset=1 & unit tests
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 3 Dec 2012 03:40:55 +0000 (22:40 -0500)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 3 Dec 2012 04:22:18 +0000 (23:22 -0500)
commitfb7c95f567735d6297701e1783457879adc6a749
treef72ebe48b6ce22ec36daacd2398427ecd1eb689e
parentabdda85097df35745a558d9b050fb1a8f087a776
(bug 42638) Fix API action=options&reset=1 & unit tests

Change I98df55f2 broke action=options&reset=1, causing it to return an
error "No changes were requested" rather than resetting the options as
it should. Unfortunately, that change also broke the unit test that
would have caught this regression.

This changeset fixes the bug and the unit tests.

Change-Id: I7fe63640d54efab4572538e9d08f5b75c61243a4
includes/api/ApiOptions.php
tests/phpunit/includes/api/ApiOptionsTest.php