@@ -21,8 +21,9 @@ function setUp()
21
21
1.0 ,
22
22
'test ' ,
23
23
new \stdClass (),
24
- (object ) [],
25
- function () {},
24
+ (object )[],
25
+ function () {
26
+ },
26
27
];
27
28
28
29
$ this ->createSchema ();
@@ -86,7 +87,7 @@ protected function schema()
86
87
* In a normal app environment these would be added to the 'providers' array in
87
88
* the config/app.php file.
88
89
*
89
- * @param \Illuminate\Foundation\Application $app
90
+ * @param \Illuminate\Foundation\Application $app
90
91
*
91
92
* @return array
92
93
*/
@@ -101,7 +102,7 @@ protected function getPackageProviders($app)
101
102
/**
102
103
* Define environment setup.
103
104
*
104
- * @param \Illuminate\Foundation\Application $app
105
+ * @param \Illuminate\Foundation\Application $app
105
106
* @return void
106
107
*/
107
108
protected function getEnvironmentSetUp ($ app )
@@ -111,14 +112,24 @@ protected function getEnvironmentSetUp($app)
111
112
112
113
public function createEmail ($ overwrite = [])
113
114
{
115
+ $ params = array_merge ([
116
+ 'label ' => 'welcome ' ,
117
+ 'recipient ' =>
'[email protected] ' ,
118
+ 'cc ' => null ,
119
+ 'bcc ' => null ,
120
+ 'subject ' => 'test ' ,
121
+ 'view ' => 'tests::dummy ' ,
122
+ 'variables ' => ['name ' => 'John Doe ' ],
123
+ ], $ overwrite );
124
+
114
125
return Email::compose ()
115
- ->label ($ overwrite ['label ' ] ?? ' welcome ' )
116
- ->
recipient (
$ overwrite [
'recipient ' ]
?? ' [email protected] ' )
117
- ->cc ($ overwrite ['cc ' ] ?? null )
118
- ->bcc ($ overwrite ['bcc ' ] ?? null )
119
- ->subject ($ overwrite ['subject ' ] ?? ' test ' )
120
- ->view ($ overwrite ['view ' ] ?? ' tests::dummy ' )
121
- ->variables ($ overwrite ['variables ' ] ?? [ ' name ' => ' John Doe ' ]);
126
+ ->label ($ params ['label ' ])
127
+ ->recipient ($ params ['recipient ' ])
128
+ ->cc ($ params ['cc ' ])
129
+ ->bcc ($ params ['bcc ' ])
130
+ ->subject ($ params ['subject ' ])
131
+ ->view ($ params ['view ' ])
132
+ ->variables ($ params ['variables ' ]);
122
133
}
123
134
124
135
public function sendEmail ($ overwrite = [])
0 commit comments