wiki.techinc.nl/tests/phpunit/includes/libs/objectcache
Timo Tijhof 4938038175 tests: Remove use of wfRandomString() for test fixtures
This reduces confidence in the test. There is no guruantee that
it won't return the same value twice during the duration of a full
PHPUnit run of all test suites, whether twice in a row or 20 minutes
apart.

For a test that needs a string of any kind, use an explicit, consinstent
and cheap literal value.

For a test that specifically needs some kind of uniqueness compared to
something else within the same test case, do so explicitly.

Tests that require something globally unique (for some undefined/vague
definition of "global") were not found, and should not exist anyway.

Also, in libs/objectcache tests, fix order of parameters in some
assertions (expected first, then actual), and use assertFalse/assertSame
instead of assertEqual for cases where false is expected to remove
tolerance of other loosely equal values.

Change-Id: Ifc60e88178da471330b94bfbf12e2731d2efc77d
2019-05-06 17:22:03 +00:00
..
BagOStuffTest.php objectcache: Remove hacky testMerge_fork() method in BagOStuffTest 2019-03-28 19:39:05 -07:00
CachedBagOStuffTest.php objectcache: merge getWithToken() into doGet() for simplicity 2019-03-27 13:03:25 -07:00
HashBagOStuffTest.php build: Updating mediawiki/mediawiki-codesniffer to 16.0.0 2018-02-17 13:29:13 +01:00
MultiWriteBagOStuffTest.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
ReplicatedBagOStuffTest.php tests: Remove use of wfRandomString() for test fixtures 2019-05-06 17:22:03 +00:00
WANObjectCacheTest.php objectcache: add metrics for WAN cache deletes and check key touches/resets 2019-03-06 08:48:47 -08:00