MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity
authorTimo Tijhof <krinklemail@gmail.com>
Tue, 7 Oct 2014 03:22:02 +0000 (05:22 +0200)
committerTimo Tijhof <krinklemail@gmail.com>
Tue, 7 Oct 2014 03:22:37 +0000 (05:22 +0200)
commit0d5a0dbf06d8b7c91c27f04dee7b99838ee54388
treec8e06f55b6950e82927ee7cb87ef5636e35e03b9
parent17adab6135bc52b6affe1634f68eb10cf0f9f080
MWCryptHKDFTest: Mock $wgSecretKey to ensure atomicity

Follows-up af66c04.

The tests depend indirectly on wgSecretKey (used by
MWCryptHKDF::generateHex). On test installs I tend to set this
to "example" or "***", which is less than 16 characters and thus
the unit tests failed with "MWCryptHKDF secret was too short".

Change-Id: I9a85fd9fbb345863e4837fed2910d60ebf1b0d83
tests/phpunit/includes/utils/MWCryptHKDFTest.php