1515 config (['smsapi.service ' => env ('SMSAPI_SERVICE ' )]);
1616 config (['smsapi.from ' => env ('SMSAPI_FROM ' )]);
1717
18- $ notification = new class extends Notification {
18+ $ notification = new class extends Notification
19+ {
1920 public function via ($ notifiable ): array
2021 {
2122 return ['smsapi ' ];
@@ -24,8 +25,7 @@ public function via($notifiable): array
2425 public function toSmsApi ($ notifiable ): SmsApiMessage
2526 {
2627 return SmsApiMessage::create ('test - ' . now ()->format ('H:i:s ' ))
27- ->from ('getmed ' )
28- ->test (true );
28+ ->test ();
2929 }
3030 };
3131
@@ -38,7 +38,7 @@ public function toSmsApi($notifiable): SmsApiMessage
3838});
3939
4040it ('can send real sms with confirmation ' , function () {
41- if (!env ('SEND_REAL_SMS ' , false )) {
41+ if (! env ('SEND_REAL_SMS ' , false )) {
4242 test ()->markTestSkipped ('Set SEND_REAL_SMS=true to send real SMS ' );
4343 }
4444
@@ -50,7 +50,8 @@ public function toSmsApi($notifiable): SmsApiMessage
5050 config (['smsapi.service ' => env ('SMSAPI_SERVICE ' )]);
5151 config (['smsapi.from ' => env ('SMSAPI_FROM ' )]);
5252
53- $ notification = new class extends Notification {
53+ $ notification = new class extends Notification
54+ {
5455 public function via ($ notifiable ): array
5556 {
5657 return ['smsapi ' ];
@@ -59,7 +60,6 @@ public function via($notifiable): array
5960 public function toSmsApi ($ notifiable ): SmsApiMessage
6061 {
6162 return SmsApiMessage::create ('test - ' . now ()->format ('H:i:s ' ))
62- ->from ('getmed ' )
6363 ->test (false );
6464 }
6565 };
@@ -70,4 +70,4 @@ public function toSmsApi($notifiable): SmsApiMessage
7070 ->notify ($ notification );
7171
7272 expect (true )->toBeTrue ();
73- });
73+ });
0 commit comments