Commit graph

72 commits

Author SHA1 Message Date
addshore
31ea82f68a Revert "Add getMessage tests with Short and Long Contexts"
Looking at the getMessage function the long and
short contexts should be strings not bools.

I was misslead by the defaults thus these tests
aren't actually testing much and should be removed
to avoid misslead more people!

This reverts commit cd9711ea35.

Change-Id: I889d42f720bf678a3543860893d0fedfca757dce
2014-03-06 21:20:29 +01:00
addshore
cd9711ea35 Add getMessage tests with Short and Long Contexts
Change-Id: Ib5a1a225b7244490fe9d3a5631d3757614174453
2014-02-27 12:00:26 +01:00
addshore
4b28a3746f Add test to complete coverage of getStatusArray
Change-Id: Ia2f9b5a723d85d19ee7a24fcf9b132d0289705f0
2014-02-22 12:00:18 +01:00
addshore
78be2c58d4 Add unit test for Status __wakeup
Change-Id: I5f116bc7df5932d6f5aeed7b81680cc08e243d0f
2014-02-22 11:42:13 +01:00
addshore
d11e2c18ce +Test for Status->CleanParams with a callback
Change-Id: I4e7570ea041d28303388c630b3ca07225faf8551
2014-01-25 16:14:49 +01:00
addshore
876b33bb4b Add test that covers Status::fatal
Change-Id: I7cb1e19569f77df5230808d7b35200b0ec9a6698
2014-01-25 16:11:57 +01:00
addshore
5a0aec1348 Add test for Status->merge with overrideValue true
Change-Id: I049c67e80277f8dbbbadae6e7a8f30d66066e7bf
2014-01-25 16:08:49 +01:00
umherirrender
2e871f7087 Fixed spacing
- Removed double spaces in arrays
- Added space after for
- Added spaces around string concat

Change-Id: Ifbcaf35f9bfef1f97226a38b5bd74c237f61c99e
2013-12-15 20:56:09 +01:00
Brad Jorsch
58a161fa35 Status::getHTML should actually return HTML
Currently it only returns wikitext with templates expanded (like
Message's text() method).

Bug: 45844
Change-Id: I24b5b098f15d0a4194817f31f63e37be1179aae6
2013-12-09 12:14:06 -05:00
umherirrender
5ca5672aac Fixed spacing
- Place commas correct
- Moved comments
- Add space after if/foreach/catch
- Reformat some conditions
- Removed trailing spaces/tabs

Change-Id: I40ccda72c418c4a33fcd675773cb08d971510cdb
2013-12-01 20:58:51 +01:00
umherirrender
4779072bb2 Fix StatusTest for wikis with $wgLanguageCode != 'en'
The "Internal error" of the error message was localized.

Change-Id: I8a461e51edd989adbeff0d1443f94bc481b3a7c2
2013-11-26 17:42:40 +00:00
Mwalker
62e3c203c5 Merge "Add final tests for the Status class" 2013-11-25 18:13:16 +00:00
Mwalker
c21a77b356 Merge "Further expand Status unit tests" 2013-11-25 18:13:08 +00:00
umherirrender
5dbfd5bf80 Fixed spacing
- Removed trailing spaces in comments
- Removed multiple empty lines
- Removed space after object operator

Change-Id: I9fd3256ab490c7cd2034de3fd94e6be6e6d6d8f2
2013-11-21 18:52:25 +00:00
jenkins-bot
a9bb933dad Merge "Cleanup and expand Status tests" 2013-11-20 05:45:41 +00:00
addshore
79dadc19a1 Add final tests for the Status class
This class now should have roughly 100%
unit test coverage! =]

Change-Id: I11383bb2c2a29c7c233d49680b5de560d2b31ee6
2013-11-19 19:12:16 +01:00
umherirrender
f153998317 Fixed spacing
- Removed double spaces
- Added space after if/switch/foreach
- Removed space on elseif
- Added space around parentheses
- Added newline at end of file
- Removed space before semicolon at end of line

Change-Id: Id40b87e04786c6111e6686d7f7eea1e588bdf37d
2013-11-19 19:03:54 +01:00
addshore
8b07ec5aba Further expand Status unit tests
When writing these I came accross a case that doesnt
quite seem right (I have left room for the test case
with a comment explaining)

Status now only has 4 untested methods

Change-Id: I61acf141de9f786793e8413d2d2ebb95e27e004d
2013-11-19 17:46:40 +00:00
addshore
a467d23e76 Cleanup and expand Status tests
Change-Id: Ib06df7196c903505fbc0a3945513c5681acaaff3
2013-11-19 17:46:33 +00:00
Kunal Mehta
c14f418924 Test for Status::hasMessage
Change-Id: I080e006fa6a7d8ad68bdf827c4bab7d0ea160230
2013-10-25 17:53:18 -07:00
Kunal Mehta
2041294b14 Add some missing :'s
Change-Id: I4f48fdd3e5d81b8a0a34505795a7ab318c931a47
2013-10-24 18:16:21 -07:00
addshore
9a06bc75f9 add basic Status unit test
Adds unit tests for some of the more basic
parts of the Status class

has todos at the bottom of the file for all other
methods that need to be tested

Change-Id: Ic2f2abafb44ef86af207c7595e440672dfcf4f1e
2013-10-24 23:25:08 +01:00