Skip to content
This repository
Browse code

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 authored
3  lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php
@@ -51,6 +51,9 @@ public function setUp() {
51 51
 		$User = ClassRegistry::init('User');
52 52
 		$User->updateAll(array('password' => $User->getDataSource()->value($password)));
53 53
 		$this->response = $this->getMock('CakeResponse');
  54
+
  55
+		$hash = Security::hash('password', 'blowfish');
  56
+		$this->skipIf(strpos($hash, '$2a$') === false, 'Skipping blowfish tests as hashing is not working');
54 57
 	}
55 58
 
56 59
 /**

0 notes on commit ea784f6

Please sign in to comment.
Something went wrong with that request. Please try again.