[Fixes #9177] Password Hash Cost setting for Security component

This commit is contained in:
freezy
2015-07-23 09:09:55 +02:00
parent b9fc0215da
commit 6a4436f95b
3 changed files with 14 additions and 2 deletions

View File

@ -72,6 +72,7 @@ class SecurityTest extends TestCase
return;
}
$this->security->passwordHashStrategy = $passwordHashStrategy;
$this->security->passwordHashCost = 4; // minimum blowfish's value is enough for tests
$password = 'secret';
$hash = $this->security->generatePasswordHash($password);