wiki.techinc.nl/tests/phpunit/includes/api
Brad Jorsch a754d43c06 Fix core DB data in unit testing
Iec4ed4c8 made it so addCoreDBData() only gets called once. Which is
nice, except for the fact that it means any test that puts
'user_groups' into $this->tablesUsed is going to cause UTSysop to no
longer be a sysop, so any later test that expects it to be one is going
to mysteriously fail.

The fix is to make resetDB() actually clear out the 'user' table when
requested, but then to re-call addCoreDBData() so UTSysop is still
there.

This might break extension tests if they're relying on the 'user' table
never being cleared even if it's specified in $this->tablesUsed, but
hopefully that's not often the case.

Bug: T132411
Change-Id: If251739fd486544f54a0c07edcc24aeef0998342
Depends-On: I0546a4f18e0751d209b6b7c6cd42973f25828313
Depends-On: I4924ae941b3844b39dd3f44c6986c3bf29b0d62a
2016-04-12 16:58:44 +00:00
..
format Swap the rest of array() -> [] 2016-03-30 22:04:58 +00: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
ApiCreateAccountTest.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 Use ::class in place of string constants 2016-03-28 14:53:45 -04:00
ApiMainTest.php Convert all array() syntax to [] 2016-02-17 01:33:00 -08: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
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
ApiTestCase.php Fix core DB data in unit testing 2016-04-12 16:58:44 +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