mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
Try skipping blowfish tests if hashes are wrong.
Another attempt at fixing failing tests on travisci.
This commit is contained in:
parent
8bbb1f166c
commit
ea784f68dc
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ class BlowfishAuthenticateTest extends CakeTestCase {
|
||||||
$User = ClassRegistry::init('User');
|
$User = ClassRegistry::init('User');
|
||||||
$User->updateAll(array('password' => $User->getDataSource()->value($password)));
|
$User->updateAll(array('password' => $User->getDataSource()->value($password)));
|
||||||
$this->response = $this->getMock('CakeResponse');
|
$this->response = $this->getMock('CakeResponse');
|
||||||
|
|
||||||
|
$hash = Security::hash('password', 'blowfish');
|
||||||
|
$this->skipIf(strpos($hash, '$2a$') === false, 'Skipping blowfish tests as hashing is not working');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue