Try skipping blowfish tests if hashes are wrong.

Another attempt at fixing failing tests on travisci.
This commit is contained in:
mark_story 2012-09-26 22:00:52 -04:00
parent 8bbb1f166c
commit ea784f68dc

View file

@ -51,6 +51,9 @@ class BlowfishAuthenticateTest extends CakeTestCase {
$User = ClassRegistry::init('User');
$User->updateAll(array('password' => $User->getDataSource()->value($password)));
$this->response = $this->getMock('CakeResponse');
$hash = Security::hash('password', 'blowfish');
$this->skipIf(strpos($hash, '$2a$') === false, 'Skipping blowfish tests as hashing is not working');
}
/**