File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88trait HasSmsNumber
99{
10-
1110 /**
1211 * The number to send SMSs to
1312 */
Original file line number Diff line number Diff line change 77
88trait SendsSms
99{
10-
1110 /**
1211 * Get the sms driver
1312 *
@@ -26,6 +25,7 @@ public function getSmsDriver(): string
2625 public function getSmsChannel (): string
2726 {
2827 $ sms_driver = $ this ->getSmsDriver ();
28+
2929 return config ('sms.channels. ' .$ sms_driver );
3030 }
3131
Original file line number Diff line number Diff line change 33namespace Javaabu \SmsNotifications \Tests \Feature ;
44
55use Dash8x \DhiraaguSmsNotification \DhiraaguSmsNotificationChannel ;
6+ use Illuminate \Foundation \Auth \User as Authenticatable ;
67use Illuminate \Notifications \Notifiable ;
78use Illuminate \Notifications \Notification as BaseNotification ;
89use Illuminate \Support \Facades \Notification ;
1112use Javaabu \SmsNotifications \Notifications \SendsSms ;
1213use Javaabu \SmsNotifications \Notifications \SmsNotification ;
1314use Javaabu \SmsNotifications \Tests \TestCase ;
14- use Illuminate \Foundation \Auth \User as Authenticatable ;
1515use NotificationChannels \Twilio \TwilioChannel ;
1616
1717class User extends Authenticatable implements SmsNotifiable
@@ -39,7 +39,7 @@ class TestNotification extends BaseNotification implements SmsNotification
3939 public function via ($ notifiable )
4040 {
4141 return [
42- $ this ->getSmsChannel ()
42+ $ this ->getSmsChannel (),
4343 ];
4444 }
4545
Original file line number Diff line number Diff line change 22
33namespace Javaabu \SmsNotifications \Tests ;
44
5- use Orchestra \Testbench \TestCase as BaseTestCase ;
65use Javaabu \SmsNotifications \SmsNotificationsServiceProvider ;
6+ use Orchestra \Testbench \TestCase as BaseTestCase ;
77
88abstract class TestCase extends BaseTestCase
99{
10-
1110 public function setUp (): void
1211 {
1312 parent ::setUp ();
You can’t perform that action at this time.
0 commit comments