aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/RequestContextTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Move Test files under same folder structure where class is (/includes/)umherirrender2014-12-161-96/+0
| | | | Change-Id: I95f1aa6f0ed2cc3306aa6e588a11f359854315c1
* RequestContextTest: Distinguish initial test from restored testTimo Tijhof2014-10-151-4/+4
| | | | | | | | Follows-up f31a046. In failure it's hard to see whether it's the first or third group of assertions as they were carying the same name. Change-Id: I5891754342400155759e797337f8509d4eca39ec
* Fix RequestContextTest screwing up $wgUserMax Semenik2014-06-271-0/+6
| | | | Change-Id: Ib3fabc1b016f33bf188682f7f894e8f52417ee40
* Pass phpcs-strict on some test files (3/x)Siebrand Mazeland2014-04-241-6/+23
| | | | Change-Id: I44172b512cd9b6c43806dad697e449bf06897305
* Add more @covers tags and test cleanupaddshore2013-10-221-0/+5
| | | | | | | | | Other cleanup includes - Adding method scopes - Fixing php comments - Adding todos Change-Id: I0a231008e6a59110ffcab6af1bd8c4d3ee13f21d
* Merge "Added space after switch/Removed spaces after unset"jenkins-bot2013-04-261-1/+1
|\
| * Added space after switch/Removed spaces after unsetumherirrender2013-04-261-1/+1
| | | | | | | | | | | | While at it, added/removed some other spaces in the same files Change-Id: I84d8001aa123a008807ad5eb76f396aed7c899a4
* | Update code formattingSiebrand Mazeland2013-04-261-1/+0
|/ | | | Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03
* Fixed importScopedSession() and moved exportUserSession() to RequestContext.Aaron Schulz2013-03-151-0/+41
| | | | | | | | | | | | * Renamed WebRequest::exportUserSession -> RequestContext::exportSession. Updated the only callers of this new function. * Init the user with User::newFromId() instead of relying on the session (which breaks when things like CentralAuth are enabled). * Made RequestContext::exportSession() include the user ID. * Removed now-redundant user ID checks in upload jobs. * Added unit tests for the session import function. Change-Id: I543e6766f7a8a828ea5d270328c3bc7738c6fe94
* It should not be possible for a RequestContext's WikiPage and Title to be ↵Daniel Friesen2012-10-241-0/+28
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