-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgraded Laravel to v8.0 * Dropped PHP 7.2 support * Changed the default User class namespace * Changed the default import sorting method Laravel changed the way they import files from line-length based sort to alphabetical based sort * Changed the factory function into the new class-based approach * Replace the depracated phpunit method * Fixed User file directory * Apply fixes from StyleCI * Added a deprecation notice to the README
- Loading branch information
1 parent
520aabe
commit 4caa186
Showing
11 changed files
with
63 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
|
||
namespace Tests\Feature\Auth; | ||
|
||
use App\User; | ||
use Tests\TestCase; | ||
use App\Models\User; | ||
use Illuminate\Auth\Notifications\ResetPassword; | ||
use Illuminate\Foundation\Testing\RefreshDatabase; | ||
use Illuminate\Support\Facades\DB; | ||
use Illuminate\Support\Facades\Hash; | ||
use Illuminate\Support\Facades\Notification; | ||
use Illuminate\Auth\Notifications\ResetPassword; | ||
use Illuminate\Foundation\Testing\RefreshDatabase; | ||
use Tests\TestCase; | ||
|
||
class ForgotPasswordTest extends TestCase | ||
{ | ||
|
@@ -39,7 +39,7 @@ public function testUserCanViewAnEmailPasswordForm() | |
|
||
public function testUserCanViewAnEmailPasswordFormWhenAuthenticated() | ||
{ | ||
$user = factory(User::class)->make(); | ||
$user = User::factory()->make(); | ||
|
||
$response = $this->actingAs($user)->get($this->passwordRequestRoute()); | ||
|
||
|
@@ -50,7 +50,7 @@ public function testUserCanViewAnEmailPasswordFormWhenAuthenticated() | |
public function testUserReceivesAnEmailWithAPasswordResetLink() | ||
{ | ||
Notification::fake(); | ||
$user = factory(User::class)->create([ | ||
$user = User::factory()->create([ | ||
'email' => '[email protected]', | ||
]); | ||
|
||
|
@@ -74,7 +74,7 @@ public function testUserDoesNotReceiveEmailWhenNotRegistered() | |
|
||
$response->assertRedirect($this->passwordEmailGetRoute()); | ||
$response->assertSessionHasErrors('email'); | ||
Notification::assertNotSentTo(factory(User::class)->make(['email' => '[email protected]']), ResetPassword::class); | ||
Notification::assertNotSentTo(User::factory()->make(['email' => '[email protected]']), ResetPassword::class); | ||
} | ||
|
||
public function testEmailIsRequired() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.