From: Stanislav Malyshev Date: Sat, 8 Oct 2016 00:02:45 +0000 (-0700) Subject: Disable reportDupes for unit tests X-Git-Tag: 1.31.0-rc.0~5169 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=d10813b6854a5ac0cc119c91c67192775f35dadc Disable reportDupes for unit tests Bug: T147697 Change-Id: Ibd5901767be0d12d2aa50a4fc48b117711e6cf98 --- diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index e53a958387..959901653d 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -242,7 +242,7 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { * which we can't allow, as that would open a new connection for mysql. * Replace with a HashBag. They would not be going to persist anyway. */ - $hashCache = [ 'class' => 'HashBagOStuff' ]; + $hashCache = [ 'class' => 'HashBagOStuff', 'reportDupes' => false ]; $objectCaches = [ CACHE_DB => $hashCache, CACHE_ACCEL => $hashCache,