Commit graph

13 commits

Author SHA1 Message Date
Siebrand Mazeland
791d0b2a98 Update code formatting
Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03
2013-04-26 14:21:20 +00:00
Siebrand Mazeland
483e29277f Remove unused local variables in tests
Change-Id: I71318eb7d8c00bfc1ce6d2fc636b498f7a695f42
2013-04-26 09:48:46 +02:00
Siebrand Mazeland
6da93fc6f6 Update code formatting
Also update some previous inconsistencies pointed out by Krinkle in change IDs:
* Ide20743a2e84ff68549286120e6cff9d9f396f54
* I811ca957b6588085d67606ebc0cd4033a1e53839

Change-Id: Ife33b931870d0d7e04fcb40974997436d27f528f
2013-03-27 14:15:11 +01:00
Platonides
d962a0be64 testInvalidEmail() passes now without local config
ApiAccountCreationTest::testInvalidEmail() no longer
needs LocalSettings to have $wgEnableEmail = true;

Change-Id: I97803be116fda8194e46fe0021c7b32d7b703b1d
2013-03-01 22:50:59 +01:00
Hashar
757c29a254 Revert "(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest"
This need to be made a global feature that will be applied to any test.

This reverts commit 2025a89d5b

Change-Id: Ia7165b78b4f80738ed9b769319e159cd86fc7bdf
2013-02-28 21:48:16 +00:00
jenkins-bot
fba656f986 Merge "(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest" 2013-02-18 10:11:04 +00:00
Siebrand Mazeland
419b02b6df Update formatting
3 of n.

Change-Id: I62ad009018c54da6cf081c334e44eb98a3c72695
2013-02-14 12:56:23 +01:00
Platonides
2025a89d5b (Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest
Change-Id: I6e9f45a51a27bdaf2bf62722f840ddc4755931aa
2013-02-09 22:47:33 +01:00
jenkins-bot
d5294eef8a Merge "Fix ApiCreateAccountTest for $wgEnableEmail = false;" 2013-01-21 20:36:33 +00:00
Brad Jorsch
252ae6268b (bug 43762) Mark slow unit test as @group medium
All tests based on APITestCase can be slow. I've also seen more than one
Jenkins failure due to GlobalTest::testMerge timing out.

Also, added a meta-test on APITestCase to make sure that all its
subclasses are marked with @group medium or @group large, to prevent new
tests from re-causing the bug.

Change-Id: I48630736a3d06574876fd1fa3d90899cfbc48012
2013-01-18 14:07:49 -05:00
umherirrender
b74fac899e Fix ApiCreateAccountTest for $wgEnableEmail = false;
1) ApiCreateAccountTest::testInvalidEmail
Failed asserting that exception of type "UsageException" is thrown.

Also explicit log out the user

Change-Id: I1d90c2b78bbcef494dc91822feeba37eebb8ca20
2013-01-13 11:10:55 +01:00
Antoine Musso
2a00da0f0f raise timeout for ApiCreateAccountTest::testValid
The ApiCreateAccountTest::testValid() test does multiple API request
which might end up being a bit slow.  That randomly cause random
failures when running the test suite which tends to confuse people.

Change-Id: I35a6670c61c7917522b2472a3a8e782e97e837f4
2013-01-11 10:46:18 +01:00
Tyler Romeo
88d87b00cd Added account creation API.
Created new API action "createaccount" that
allows access to account creation. Takes
username, password, email, realname, token,
and optionally mailpassword and reason.

Errors are given in an errors array. Note
there is no way to natively handle CAPTCHAs
as there is no uniform implementation of
presenting CAPTCHA links to user. Right now
the best an extension can do is return an
error in AbortNewAccount, which will then
be displayed as an error in the Api result.

Change-Id: Ibdb1e50d434fb857683e1e4ff5a4a5a91c6b7c3a
2013-01-11 01:00:49 +01:00