From ea784f68dc2275153186fc2cbd4cf5b0df364e2a Mon Sep 17 00:00:00 2001 From: mark_story Date: Wed, 26 Sep 2012 22:00:52 -0400 Subject: [PATCH] Try skipping blowfish tests if hashes are wrong. Another attempt at fixing failing tests on travisci. --- .../Controller/Component/Auth/BlowfishAuthenticateTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php b/lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php index 59238199ed9..d36379e89e3 100644 --- a/lib/Cake/Test/Case/Controller/Component/Auth/BlowfishAuthenticateTest.php +++ b/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'); } /**