aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/tests/Unit/HasherTest.php
diff options
context:
space:
mode:
authorMarvin Borner2018-05-23 22:23:28 +0200
committerMarvin Borner2018-05-23 22:23:28 +0200
commitb66a61addb6c8e66cb26fcf74b532d68891267e4 (patch)
tree05e9449ff25bdc98f68105f41923ccb9f6ef5095 /main/app/sprinkles/account/tests/Unit/HasherTest.php
parent1d4ef435177a5f9b6d1a289800d933e49be0c550 (diff)
Refactored code, many fixes and improvements in chat backend+frontend
Diffstat (limited to 'main/app/sprinkles/account/tests/Unit/HasherTest.php')
-rw-r--r--main/app/sprinkles/account/tests/Unit/HasherTest.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/main/app/sprinkles/account/tests/Unit/HasherTest.php b/main/app/sprinkles/account/tests/Unit/HasherTest.php
index 711e3cb..95ce270 100644
--- a/main/app/sprinkles/account/tests/Unit/HasherTest.php
+++ b/main/app/sprinkles/account/tests/Unit/HasherTest.php
@@ -5,6 +5,7 @@
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
+
namespace UserFrosting\Tests\Unit;
use UserFrosting\Sprinkle\Account\Authenticate\Hasher;
@@ -34,8 +35,7 @@ class HasherTest extends TestCase
*/
protected $modernHash = '$2y$10$ucxLwloFso6wJoct1baBQefdrttws/taEYvavi6qoPsw/vd1u4Mha';
- public function testGetHashType()
- {
+ public function testGetHashType() {
$hasher = new Hasher;
$type = $hasher->getHashType($this->modernHash);
@@ -51,8 +51,7 @@ class HasherTest extends TestCase
$this->assertEquals('sha1', $type);
}
- public function testVerify()
- {
+ public function testVerify() {
$hasher = new Hasher;
$this->assertTrue($hasher->verify($this->plainText, $this->modernHash));
@@ -60,8 +59,7 @@ class HasherTest extends TestCase
$this->assertTrue($hasher->verify($this->plainText, $this->userCakeHash));
}
- public function testVerifyReject()
- {
+ public function testVerifyReject() {
$hasher = new Hasher;
$this->assertFalse($hasher->verify('selleth', $this->modernHash));