aboutsummaryrefslogtreecommitdiffhomepage
path: root/main/app/sprinkles/account/tests/Unit
diff options
context:
space:
mode:
Diffstat (limited to 'main/app/sprinkles/account/tests/Unit')
-rw-r--r--main/app/sprinkles/account/tests/Unit/FactoriesTest.php4
-rw-r--r--main/app/sprinkles/account/tests/Unit/HasherTest.php10
2 files changed, 6 insertions, 8 deletions
diff --git a/main/app/sprinkles/account/tests/Unit/FactoriesTest.php b/main/app/sprinkles/account/tests/Unit/FactoriesTest.php
index ee2bf23..84b3cd6 100644
--- a/main/app/sprinkles/account/tests/Unit/FactoriesTest.php
+++ b/main/app/sprinkles/account/tests/Unit/FactoriesTest.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\Tests\TestCase;
@@ -20,8 +21,7 @@ class FactoriesTest extends TestCase
{
use DatabaseTransactions;
- function testUserFactory()
- {
+ function testUserFactory() {
$fm = $this->ci->factory;
$user = $fm->create('UserFrosting\Sprinkle\Account\Database\Models\User');
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));