forked from laravel/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/6.x' into phpstorm_fixes
* upstream/6.x: (21 commits) Revert "[6.x] migrate --seed should seed the same database (laravel#31678)" (laravel#31685) [6.x] Allow easier customization of the queued mailable job (laravel#31684) [6.x] migrate --seed should seed the same database (laravel#31678) [6.x] Make newPivotQuery public (laravel#31677) [6.x] update changelog Fix flakey memcached tests (laravel#31646) Fixed phpdoc formatting [6.x] Expose Notification Id within Message Data (laravel#31632) [6.x] Add support for Arr::hasAny (laravel#31636) Fix phpdoc [6.x] update changelog [6.x] update changelog Fix styling for phpdoc Create resolve method which loads deferred providers if needed Revert "Call make instead of resolve to load deffered providers" Call make instead of resolve to load deffered providers Add test that failes to load deffered provider of implementation while accessing class through interface Use correct locale when resolving Faker from the container (laravel#31615) clean-up-some-methods ... # Conflicts: # src/Illuminate/Database/DatabaseServiceProvider.php
- Loading branch information
Showing
15 changed files
with
180 additions
and
29 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
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
use Illuminate\Notifications\Notifiable; | ||
use Illuminate\Notifications\Notification; | ||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Support\Str; | ||
use Mockery as m; | ||
use Orchestra\Testbench\TestCase; | ||
|
||
|
@@ -69,6 +70,7 @@ protected function setUp(): void | |
public function testMailIsSent() | ||
{ | ||
$notification = new TestMailNotification; | ||
$notification->id = Str::uuid()->toString(); | ||
|
||
$user = NotifiableUser::forceCreate([ | ||
'email' => '[email protected]', | ||
|
@@ -80,6 +82,7 @@ public function testMailIsSent() | |
$this->mailer->shouldReceive('send')->once()->with( | ||
['html' => 'htmlContent', 'text' => 'textContent'], | ||
array_merge($notification->toMail($user)->toArray(), [ | ||
'__laravel_notification_id' => $notification->id, | ||
'__laravel_notification' => get_class($notification), | ||
'__laravel_notification_queued' => false, | ||
]), | ||
|
@@ -112,6 +115,7 @@ public function testMailIsSent() | |
public function testMailIsSentToNamedAddress() | ||
{ | ||
$notification = new TestMailNotification; | ||
$notification->id = Str::uuid()->toString(); | ||
|
||
$user = NotifiableUserWithNamedAddress::forceCreate([ | ||
'email' => '[email protected]', | ||
|
@@ -124,6 +128,7 @@ public function testMailIsSentToNamedAddress() | |
$this->mailer->shouldReceive('send')->once()->with( | ||
['html' => 'htmlContent', 'text' => 'textContent'], | ||
array_merge($notification->toMail($user)->toArray(), [ | ||
'__laravel_notification_id' => $notification->id, | ||
'__laravel_notification' => get_class($notification), | ||
'__laravel_notification_queued' => false, | ||
]), | ||
|
@@ -156,6 +161,7 @@ public function testMailIsSentToNamedAddress() | |
public function testMailIsSentWithSubject() | ||
{ | ||
$notification = new TestMailNotificationWithSubject; | ||
$notification->id = Str::uuid()->toString(); | ||
|
||
$user = NotifiableUser::forceCreate([ | ||
'email' => '[email protected]', | ||
|
@@ -167,6 +173,7 @@ public function testMailIsSentWithSubject() | |
$this->mailer->shouldReceive('send')->once()->with( | ||
['html' => 'htmlContent', 'text' => 'textContent'], | ||
array_merge($notification->toMail($user)->toArray(), [ | ||
'__laravel_notification_id' => $notification->id, | ||
'__laravel_notification' => get_class($notification), | ||
'__laravel_notification_queued' => false, | ||
]), | ||
|
@@ -189,6 +196,7 @@ public function testMailIsSentWithSubject() | |
public function testMailIsSentToMultipleAdresses() | ||
{ | ||
$notification = new TestMailNotificationWithSubject; | ||
$notification->id = Str::uuid()->toString(); | ||
|
||
$user = NotifiableUserWithMultipleAddreses::forceCreate([ | ||
'email' => '[email protected]', | ||
|
@@ -200,6 +208,7 @@ public function testMailIsSentToMultipleAdresses() | |
$this->mailer->shouldReceive('send')->once()->with( | ||
['html' => 'htmlContent', 'text' => 'textContent'], | ||
array_merge($notification->toMail($user)->toArray(), [ | ||
'__laravel_notification_id' => $notification->id, | ||
'__laravel_notification' => get_class($notification), | ||
'__laravel_notification_queued' => false, | ||
]), | ||
|
Oops, something went wrong.