It should not be possible for a RequestContext's WikiPage and Title to be different.
authorDaniel Friesen <daniel@nadir-seen-fire.com>
Wed, 24 Oct 2012 14:32:46 +0000 (07:32 -0700)
committerDaniel Friesen <daniel@nadir-seen-fire.com>
Wed, 24 Oct 2012 15:17:27 +0000 (08:17 -0700)
commit0b6b78d13a97a43e17c287aaafe6ce64abfe9f91
tree81f0259dc1ec447e81fd96f3f46a93d12fc04e72
parent1fc39609eb8e2eee31fdd49c7bb084557622f61e
It should not be possible for a RequestContext's WikiPage and Title to be different.

Looks like someone messed with RequestContext when I wasn't looking at it.
WikiPage is a representation of the Title. It should not be possible for wikipage
to point to a different title than the context's title.

Fix this issue by unsetting WikiPage when setting title and updating title when
setting wikipage.

Change-Id: I40471b12d08763cb1b47b8382f96d8db94b4f319
includes/context/RequestContext.php
tests/phpunit/includes/RequestContextTest.php [new file with mode: 0644]