FIX Add namespace and encryptor to tests that expect blowfish to be available

This commit is contained in:
Robbie Averill 2018-05-24 11:24:48 +12:00
parent bb1f0cce58
commit e7e32d13a3
No known key found for this signature in database
GPG Key ID: 3C73047F9933CBEE

View File

@ -21,6 +21,7 @@ use SilverStripe\Security\Member_Validator;
use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator;
use SilverStripe\Security\MemberAuthenticator\SessionAuthenticationHandler;
use SilverStripe\Security\MemberPassword;
use SilverStripe\Security\PasswordEncryptor_Blowfish;
use SilverStripe\Security\Permission;
use SilverStripe\Security\RememberLoginHash;
use SilverStripe\Security\Security;
@ -899,6 +900,8 @@ class MemberTest extends FunctionalTest
public function testValidateAutoLoginToken()
{
$enc = new PasswordEncryptor_Blowfish();
$m1 = new Member();
$m1->PasswordEncryption = 'blowfish';
$m1->Salt = $enc->salt('123');