File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace BeyondCode \Mailbox \Http \Controllers ;
4
4
5
+ use Illuminate \Routing \Controller ;
5
6
use BeyondCode \Mailbox \Facades \Mailbox ;
6
7
use BeyondCode \Mailbox \Http \Requests \PostmarkRequest ;
7
8
8
- class PostmarkController
9
+ class PostmarkController extends Controller
9
10
{
11
+ public function __construct ()
12
+ {
13
+ $ this ->middleware ('laravel-mailbox ' );
14
+ }
15
+
10
16
public function __invoke (PostmarkRequest $ request )
11
17
{
12
18
Mailbox::callMailboxes ($ request ->email ());
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ protected function getEnvironmentSetUp($app)
16
16
/** @test */
17
17
public function it_expects_to_receive_raw_email_field ()
18
18
{
19
+ $ this ->withoutMiddleware ();
20
+
19
21
$ this ->post ('/laravel-mailbox/postmark ' , [
20
22
'something ' => 'value ' ,
21
23
])->assertSessionHasErrors ('RawEmail ' )->assertStatus (302 );
You can’t perform that action at this time.
0 commit comments