Browse files

Try skipping blowfish tests if hashes are wrong.

Another attempt at fixing failing tests on travisci.
  • Loading branch information...
1 parent 8bbb1f1 commit ea784f68dc2275153186fc2cbd4cf5b0df364e2a @markstory markstory committed Sep 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php
View
3 lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php
@@ -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');
}
/**

0 comments on commit ea784f6

Please sign in to comment.