aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/api/ApiAccountCreationTest.php
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup Api phpunit Testsaddshore2013-10-241-159/+0
| | | | | | | | - Splits multiple classes into individual files - Adds @covers tags - Fixes scope Change-Id: I7d2816d3574fa53a2aaa8e2a84b7a7ecdd245252
* Fix scope on all /phpunit test methodsaddshore2013-10-241-5/+5
| | | | Change-Id: I3ce92463d485a0fb23e464e9a8059330f32d79af
* Update code formattingSiebrand Mazeland2013-04-261-7/+10
| | | | Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03
* Remove unused local variables in testsSiebrand Mazeland2013-04-261-2/+2
| | | | Change-Id: I71318eb7d8c00bfc1ce6d2fc636b498f7a695f42
* Update code formattingSiebrand Mazeland2013-03-271-11/+14
| | | | | | | | Also update some previous inconsistencies pointed out by Krinkle in change IDs: * Ide20743a2e84ff68549286120e6cff9d9f396f54 * I811ca957b6588085d67606ebc0cd4033a1e53839 Change-Id: Ife33b931870d0d7e04fcb40974997436d27f528f
* testInvalidEmail() passes now without local configPlatonides2013-03-011-4/+1
| | | | | | | ApiAccountCreationTest::testInvalidEmail() no longer needs LocalSettings to have $wgEnableEmail = true; Change-Id: I97803be116fda8194e46fe0021c7b32d7b703b1d
* Revert "(Bug 44192) Do not attempt to send a real e-mail in ↵Hashar2013-02-281-6/+0
| | | | | | | | | | ApiAccountCreationTest" This need to be made a global feature that will be applied to any test. This reverts commit 2025a89d5bcc513826428529ed191aa781942419 Change-Id: Ia7165b78b4f80738ed9b769319e159cd86fc7bdf
* Merge "(Bug 44192) Do not attempt to send a real e-mail in ↵jenkins-bot2013-02-181-0/+6
|\ | | | | | | ApiAccountCreationTest"
| * (Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTestPlatonides2013-02-091-0/+6
| | | | | | | | Change-Id: I6e9f45a51a27bdaf2bf62722f840ddc4755931aa
* | Update formattingSiebrand Mazeland2013-02-141-1/+1
|/ | | | | | 3 of n. Change-Id: I62ad009018c54da6cf081c334e44eb98a3c72695
* Merge "Fix ApiCreateAccountTest for $wgEnableEmail = false;"jenkins-bot2013-01-211-2/+13
|\
| * Fix ApiCreateAccountTest for $wgEnableEmail = false;umherirrender2013-01-131-2/+13
| | | | | | | | | | | | | | | | | | 1) ApiCreateAccountTest::testInvalidEmail Failed asserting that exception of type "UsageException" is thrown. Also explicit log out the user Change-Id: I1d90c2b78bbcef494dc91822feeba37eebb8ca20
* | (bug 43762) Mark slow unit test as @group mediumBrad Jorsch2013-01-181-0/+1
|/ | | | | | | | | | | 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
* raise timeout for ApiCreateAccountTest::testValidAntoine Musso2013-01-111-0/+4
| | | | | | | | 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
* Added account creation API.Tyler Romeo2013-01-111-0/+140
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