mediawiki-extensions-Thanks/tests/phpunit
Roan Kattouw 5f9f913fb6 ApiCoreThankIntegrationTest: Fix intermittent failures
Every time the setup function runs, it chooses a random page name with
random content. If it chooses a page name + content combination that was
used to set up a different test in the same run, the edit it makes will
be a null edit, the revid will be null, and the test will crash.

There are 100 possible page names and 100 possible page texts, so 10k
possibilities total, and the setup function appears to be called 10 times,
so the probability of a collision would have been
(10 choose 2)/10000 = 0.0045 = 0.45%, or one in every 222 times.

Bug: T151878
Change-Id: I800ee8512c2ad171ba793bea343f456653f9a16d
2018-03-19 18:03:27 -07:00
..
ApiCoreThankIntegrationTest.php ApiCoreThankIntegrationTest: Fix intermittent failures 2018-03-19 18:03:27 -07:00
ApiCoreThankUnitTest.php Rename files and classes in preparation for adding log-thanks 2018-02-21 12:49:21 +08:00
ApiFlowThankIntegrationTest.php Move classes to includes/ and rename some to match class names 2018-01-30 10:32:03 +08:00