-
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9919db7
commit 5981920
Showing
5 changed files
with
34 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\Unit\Mail; | ||
namespace Tests\Unit\Mail; | ||
|
||
use App\Mail\ResetPassword; | ||
use Tests\TestCase; | ||
|
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
namespace Tests\Unit\Mail; | ||
|
||
use App\Mail\VerifyRegistration; | ||
use App\Models\User; | ||
use Tests\TestCase; | ||
|
||
class VerifyRegistrationTest extends TestCase | ||
{ | ||
public function testMailable(): void | ||
{ | ||
$user = User::factory() | ||
->create([ | ||
'name' => 'John Doe', | ||
'verification_token' => 'abc123', | ||
]); | ||
|
||
$mailable = new VerifyRegistration($user); | ||
|
||
$mailable | ||
->assertSeeInText('Welcome aboard, John Doe') | ||
->assertSeeInText('We\'re going to help you get insight into your personal finances.') | ||
->assertSeeInText('No more dealing with pesky, half-assed spreadsheets.') | ||
->assertSeeInHtml('<a href="' . config('app.url') . '/verify/abc123">Verify</a>', false); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\Unit\Mail; | ||
namespace Tests\Unit\Mail; | ||
|
||
use App\Mail\WeeklyReport; | ||
use App\Models\Space; | ||
|