wiki.techinc.nl/tests/phpunit/includes/api
Ori Livneh e638075936 Whenever possible, reuse User objects in unit tests
The unit tests spend nearly half of their run time resetting the user table for
each test. But the majority of tests do not depend on the user table having the
exact value that the setup code resets it to, and do not need to modify the
user objects they require to run.

Fix that by providing an API for tests to get User objects, and to indicate
whether the User object will be subject to destructive modification or not.
This allows User objects to be reused across multiple unit tests.

Change-Id: I17ef1f519759c5e7796c259282afe730ef722e96
2016-05-26 20:42:31 +00:00
..
format SECURITY: Improve cross-domain-policy mangling 2016-05-20 09:48:11 -07:00
query Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00
ApiBaseTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiBlockTest.php Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00
ApiContinuationManagerTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiEditPageTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiErrorFormatterTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiLoginTest.php Merge "Speed up password-handling in the unit tests" 2016-05-18 12:46:28 +00:00
ApiMainTest.php Fix various phpcs error from last security patches 2016-05-20 20:20:36 +02:00
ApiMessageTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiModuleManagerTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiOptionsTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiPageSetTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiParseTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiPurgeTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiQueryAllPagesTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiQueryWatchlistIntegrationTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
ApiResultTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiRevisionDeleteTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiSetNotificationTimestampIntegrationTest.php Add ApiSetNotificationTimestampIntegrationTest 2016-05-18 12:08:47 +01:00
ApiTestCase.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
ApiTestCaseUpload.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiTestContext.php
ApiTokensTest.php
ApiUnblockTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
ApiUploadTest.php Many more function case mismatches 2016-03-19 00:20:58 +00:00
ApiWatchTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
generateRandomImages.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MockApi.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
MockApiQueryBase.php
PrefixUniquenessTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08:00
RandomImageGenerator.php Replace uses of join() by implode() 2016-03-08 18:24:16 +00:00
UserWrapper.php Fix numerous class/function casing 2016-03-18 23:14:49 +00:00
words.txt