diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 13:16:00 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2019-11-06 13:16:00 +0100 |
commit | 2cce967eb09edd6ef35238c68f8ff5ed2348f5fd (patch) | |
tree | 8848ca509d5a37cf699120e57abdd80e53443c0b /tests/Unit/Controllers | |
parent | 867d720f150dc5a728a092f8d66d8b1c1a5efc5a (diff) |
Tests: Replaced duplicates and formatting/cleanup
Diffstat (limited to 'tests/Unit/Controllers')
-rw-r--r-- | tests/Unit/Controllers/PasswordResetControllerTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/Unit/Controllers/PasswordResetControllerTest.php b/tests/Unit/Controllers/PasswordResetControllerTest.php index 54046cef..09538416 100644 --- a/tests/Unit/Controllers/PasswordResetControllerTest.php +++ b/tests/Unit/Controllers/PasswordResetControllerTest.php @@ -61,7 +61,7 @@ class PasswordResetControllerTest extends TestCase $controller->postReset($request); - $this->assertNotEmpty(PasswordReset::find($user->id)->first()); + $this->assertNotEmpty((new PasswordReset())->find($user->id)->first()); $this->assertTrue($log->hasInfoThatContains($user->name)); } @@ -152,7 +152,7 @@ class PasswordResetControllerTest extends TestCase $response = $controller->postResetPassword($request); $this->assertEquals(200, $response->getStatusCode()); - $this->assertEmpty(PasswordReset::find($user->id)); + $this->assertEmpty((new PasswordReset)->find($user->id)); $this->assertNotNull(auth()->authenticate($user->name, $password)); } |