Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Try skipping blowfish tests if hashes are wrong.

Another attempt at fixing failing tests on travisci.
  • Loading branch information...
commit ea784f68dc2275153186fc2cbd4cf5b0df364e2a 1 parent 8bbb1f1
Mark Story markstory authored
3  lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php
View
@@ -51,6 +51,9 @@ public function setUp() {
$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');
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.