File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
use Illuminate \Support \Facades \Notification ;
4
4
use Spatie \Backup \BackupDestination \BackupDestinationFactory ;
5
5
use Spatie \Backup \Config \Config ;
6
+ use Spatie \Backup \Config \NotificationMailConfig ;
6
7
use Spatie \Backup \Events \BackupHasFailed ;
8
+ use Spatie \Backup \Exceptions \InvalidConfig ;
7
9
use Spatie \Backup \Notifications \Notifiable ;
8
10
use Spatie \Backup \Notifications \Notifications \BackupHasFailedNotification ;
9
- use Spatie \Backup \Exceptions \InvalidConfig ;
10
- use Spatie \Backup \Config \NotificationMailConfig ;
11
11
12
12
beforeEach (function () {
13
13
Notification::fake ();
89
89
],
90
90
];
91
91
92
- expect (fn () => NotificationMailConfig::fromArray ($ data ))->toThrow (InvalidConfig::class);
92
+ expect (fn () => NotificationMailConfig::fromArray ($ data ))->toThrow (InvalidConfig::class);
93
93
});
94
94
95
95
it ('will throw an exception for invalid email in array ' , function () {
101
101
],
102
102
];
103
103
104
- expect (fn () => NotificationMailConfig::fromArray ($ data ))->toThrow (InvalidConfig::class);
104
+ expect (fn () => NotificationMailConfig::fromArray ($ data ))->toThrow (InvalidConfig::class);
105
105
});
106
106
107
107
function fireBackupHasFailedEvent (): void
You can’t perform that action at this time.
0 commit comments