phpunit: Set $wgMainStash to 'hash' during test execution
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 25 Sep 2015 04:51:01 +0000 (05:51 +0100)
committerKrinkle <krinklemail@gmail.com>
Fri, 25 Sep 2015 04:57:31 +0000 (04:57 +0000)
commit74433a3ca83e8dae2c347d039932ea5e47ba3665
tree5378e21f4eb66b141d0f74e91b74a8e93caa70a0
parentbdabeab02a5bb58aafd60f34d905d4b9b016d332
phpunit: Set $wgMainStash to 'hash' during test execution

Also clean up the other cache settings to match their order
as defined in DefaultSettings.php.

Don't disable MessageCacheType, ParserCacheType etc. This could
prevent bugs from happening during tests. They are enabled by default
in MediaWiki with CACHE_ANYTHING. At least let them use 'hash'
during tests to resemble a more realistic environment.

Change-Id: Id9edf33c600db3ac4d837e1674a8eb2f5363a4f8
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/phpunit.php