File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -53,10 +53,9 @@ private function send($item)
5353 $ dto = new DevNotificationDto ;
5454
5555 if ($ item instanceof Throwable) {
56-
5756 if ($ this ->persist ) {
5857 $ dto = DevNotificationDto::makeFromExceptionLog (
59- tap (ExceptionLog::makeFromException ($ item ), fn (ExceptionLog $ log ) => $ log ->save ())
58+ tap (ExceptionLog::makeFromException ($ item ), fn (ExceptionLog $ log ) => $ log ->save ())
6059 );
6160 } else {
6261 $ dto = DevNotificationDto::makeFromException ($ item );
Original file line number Diff line number Diff line change 22
33namespace Binarcode \LaravelDeveloper \Tests \Helpers ;
44
5- use Binarcode \LaravelDeveloper \LaravelDeveloper ;
65use Binarcode \LaravelDeveloper \Models \ExceptionLog ;
76use Binarcode \LaravelDeveloper \Notifications \DevNotification ;
87use Binarcode \LaravelDeveloper \Notifications \Slack ;
@@ -36,7 +35,7 @@ public function test_slack_helper_can_send_throwable_to_slack()
3635 Notification::fake ();
3736
3837 config ([
39- 'developer.exception_log_base_url ' => 'app.test/{uuid} '
38+ 'developer.exception_log_base_url ' => 'app.test/{uuid} ' ,
4039 ]);
4140
4241 $ this ->assertInstanceOf (Slack::class, slack (new Exception ('not found ' , 404 ))->persist ());
@@ -45,7 +44,7 @@ public function test_slack_helper_can_send_throwable_to_slack()
4544
4645 $ uuid = ExceptionLog::latest ()->first ()->uuid ;
4746
48- Notification::assertSentTo (new AnonymousNotifiable , DevNotification::class, function (DevNotification $ class ) use ($ uuid ) {
47+ Notification::assertSentTo (new AnonymousNotifiable , DevNotification::class, function (DevNotification $ class ) use ($ uuid ) {
4948 return $ class ->notificationDto ->attachment_link === "app.test/ {$ uuid }" ;
5049 });
5150 }
You can’t perform that action at this time.
0 commit comments