1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,52 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-namespace Illuminate\Support\Facades; |
|
4 |
- |
|
5 |
-use Illuminate\Support\Testing\Fakes\MailFake; |
|
6 |
- |
|
7 |
-/** |
|
8 |
- * @method static \Illuminate\Mail\PendingMail to($users) |
|
9 |
- * @method static \Illuminate\Mail\PendingMail bcc($users) |
|
10 |
- * @method static void raw(string $text, $callback) |
|
11 |
- * @method static void send(string|array|\Illuminate\Contracts\Mail\Mailable $view, array $data = [], \Closure|string $callback = null) |
|
12 |
- * @method static array failures() |
|
13 |
- * @method static mixed queue(string|array|\Illuminate\Contracts\Mail\Mailable $view, string $queue = null) |
|
14 |
- * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, string|array|\Illuminate\Contracts\Mail\Mailable $view, string $queue = null) |
|
15 |
- * @method static void assertSent(string $mailable, \Closure|string $callback = null) |
|
16 |
- * @method static void assertNotSent(string $mailable, \Closure|string $callback = null) |
|
17 |
- * @method static void assertNothingSent() |
|
18 |
- * @method static void assertQueued(string $mailable, \Closure|string $callback = null) |
|
19 |
- * @method static void assertNotQueued(string $mailable, \Closure|string $callback = null) |
|
20 |
- * @method static void assertNothingQueued() |
|
21 |
- * @method static \Illuminate\Support\Collection sent(string $mailable, \Closure|string $callback = null) |
|
22 |
- * @method static bool hasSent(string $mailable) |
|
23 |
- * @method static \Illuminate\Support\Collection queued(string $mailable, \Closure|string $callback = null) |
|
24 |
- * @method static bool hasQueued(string $mailable) |
|
25 |
- * |
|
26 |
- * @see \Illuminate\Mail\Mailer |
|
27 |
- * @see \Illuminate\Support\Testing\Fakes\MailFake |
|
28 |
- */ |
|
29 |
-class Mail extends Facade |
|
30 |
-{ |
|
31 |
- /** |
|
32 |
- * Replace the bound instance with a fake. |
|
33 |
- * |
|
34 |
- * @return \Illuminate\Support\Testing\Fakes\MailFake |
|
35 |
- */ |
|
36 |
- public static function fake() |
|
37 |
- { |
|
38 |
- static::swap($fake = new MailFake); |
|
39 |
- |
|
40 |
- return $fake; |
|
41 |
- } |
|
42 |
- |
|
43 |
- /** |
|
44 |
- * Get the registered name of the component. |
|
45 |
- * |
|
46 |
- * @return string |
|
47 |
- */ |
|
48 |
- protected static function getFacadeAccessor() |
|
49 |
- { |
|
50 |
- return 'mailer'; |
|
51 |
- } |
|
52 |
-} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,52 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+namespace Illuminate\Support\Facades; |
|
4 |
+ |
|
5 |
+use Illuminate\Support\Testing\Fakes\MailFake; |
|
6 |
+ |
|
7 |
+/** |
|
8 |
+ * @method static \Illuminate\Mail\PendingMail to($users) |
|
9 |
+ * @method static \Illuminate\Mail\PendingMail bcc($users) |
|
10 |
+ * @method static void raw(string $text, $callback) |
|
11 |
+ * @method static void send(string|array|\Illuminate\Contracts\Mail\Mailable $view, array $data = [], \Closure|string $callback = null) |
|
12 |
+ * @method static array failures() |
|
13 |
+ * @method static mixed queue(string|array|\Illuminate\Contracts\Mail\Mailable $view, string $queue = null) |
|
14 |
+ * @method static mixed later(\DateTimeInterface|\DateInterval|int $delay, string|array|\Illuminate\Contracts\Mail\Mailable $view, string $queue = null) |
|
15 |
+ * @method static void assertSent(string $mailable, \Closure|string $callback = null) |
|
16 |
+ * @method static void assertNotSent(string $mailable, \Closure|string $callback = null) |
|
17 |
+ * @method static void assertNothingSent() |
|
18 |
+ * @method static void assertQueued(string $mailable, \Closure|string $callback = null) |
|
19 |
+ * @method static void assertNotQueued(string $mailable, \Closure|string $callback = null) |
|
20 |
+ * @method static void assertNothingQueued() |
|
21 |
+ * @method static \Illuminate\Support\Collection sent(string $mailable, \Closure|string $callback = null) |
|
22 |
+ * @method static bool hasSent(string $mailable) |
|
23 |
+ * @method static \Illuminate\Support\Collection queued(string $mailable, \Closure|string $callback = null) |
|
24 |
+ * @method static bool hasQueued(string $mailable) |
|
25 |
+ * |
|
26 |
+ * @see \Illuminate\Mail\Mailer |
|
27 |
+ * @see \Illuminate\Support\Testing\Fakes\MailFake |
|
28 |
+ */ |
|
29 |
+class Mail extends Facade |
|
30 |
+{ |
|
31 |
+ /** |
|
32 |
+ * Replace the bound instance with a fake. |
|
33 |
+ * |
|
34 |
+ * @return \Illuminate\Support\Testing\Fakes\MailFake |
|
35 |
+ */ |
|
36 |
+ public static function fake() |
|
37 |
+ { |
|
38 |
+ static::swap($fake = new MailFake); |
|
39 |
+ |
|
40 |
+ return $fake; |
|
41 |
+ } |
|
42 |
+ |
|
43 |
+ /** |
|
44 |
+ * Get the registered name of the component. |
|
45 |
+ * |
|
46 |
+ * @return string |
|
47 |
+ */ |
|
48 |
+ protected static function getFacadeAccessor() |
|
49 |
+ { |
|
50 |
+ return 'mailer'; |
|
51 |
+ } |
|
52 |
+} |