File tree Expand file tree Collapse file tree 6 files changed +11
-13
lines changed
Expand file tree Collapse file tree 6 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Bow Framework's mail system is very simple email delivery system with support:
1010Let's show a little exemple:
1111
1212``` php
13- use Bow\Mail\Message ;
13+ use Bow\Mail\Envelop ;
1414
1515email('view.template', function (Message $message) {
1616 $message->to("papac@bowphp.com");
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public function toTelegram(Model $context): array
9898 * @param Model $context
9999 * @return void
100100 */
101- final function process (Model $ context ): void
101+ public final function process (Model $ context ): void
102102 {
103103 $ channels = $ this ->channels ($ context );
104104
Original file line number Diff line number Diff line change 1616
1717 'mail ' => [
1818 'default ' => 'contact ' ,
19- 'froms ' => [
19+ 'from ' => [
2020 'contact ' => [
2121 'address ' => app_env ('MAIL_FROM_EMAIL ' ),
2222 'name ' => app_env ('MAIL_FROM_NAME ' )
Original file line number Diff line number Diff line change 55use Bow \Configuration \Loader as ConfigurationLoader ;
66use Bow \Mail \Contracts \MailAdapterInterface ;
77use Bow \Mail \Mail ;
8- use Bow \Mail \Message ;
98use Bow \Tests \Config \TestingConfiguration ;
109use Bow \View \Exception \ViewException ;
1110use Bow \View \View ;
Original file line number Diff line number Diff line change @@ -32,6 +32,14 @@ public static function setUpBeforeClass(): void
3232 ]);
3333 }
3434
35+ protected function setUp (): void
36+ {
37+ parent ::setUp ();
38+
39+ $ this ->context = $ this ->createMock (TestNotifiableModel::class);
40+ $ this ->message = $ this ->createMock (TestMessage::class);
41+ }
42+
3543 public function test_can_send_message_synchronously (): void
3644 {
3745 $ this ->message ->expects ($ this ->once ())
@@ -183,12 +191,4 @@ public function test_message_can_send_to_telegram(): void
183191 $ this ->assertEquals ('Test Telegram message ' , $ data ['message ' ]);
184192 $ this ->assertEquals ('HTML ' , $ data ['parse_mode ' ]);
185193 }
186-
187- protected function setUp (): void
188- {
189- parent ::setUp ();
190-
191- $ this ->context = $ this ->createMock (TestNotifiableModel::class);
192- $ this ->message = $ this ->createMock (TestMessage::class);
193- }
194194}
Original file line number Diff line number Diff line change 55use Bow \Configuration \LoggerConfiguration ;
66use Bow \Mail \MailConfiguration ;
77use Bow \Mail \MailQueueProducer ;
8- use Bow \Mail \Message ;
98use Bow \Queue \Connection as QueueConnection ;
109use Bow \Queue \QueueConfiguration ;
1110use Bow \Tests \Config \TestingConfiguration ;
You can’t perform that action at this time.
0 commit comments