wiki.techinc.nl/tests/phpunit/includes/cache
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
..
GenderCacheTest.php Whenever possible, reuse User objects in unit tests 2016-05-26 20:42:31 +00:00
LocalisationCacheTest.php Don't return PHPUnit_Framework_MockObject_MockObject when not needed 2016-03-11 15:28:46 +00:00
MessageCacheTest.php Avoid rebuilding database fixtures for every test run 2016-03-10 23:44:34 +00:00