@@ -21,8 +21,9 @@ function setUp()
2121 1.0 ,
2222 'test ' ,
2323 new \stdClass (),
24- (object ) [],
25- function () {},
24+ (object )[],
25+ function () {
26+ },
2627 ];
2728
2829 $ this ->createSchema ();
@@ -86,7 +87,7 @@ protected function schema()
8687 * In a normal app environment these would be added to the 'providers' array in
8788 * the config/app.php file.
8889 *
89- * @param \Illuminate\Foundation\Application $app
90+ * @param \Illuminate\Foundation\Application $app
9091 *
9192 * @return array
9293 */
@@ -101,7 +102,7 @@ protected function getPackageProviders($app)
101102 /**
102103 * Define environment setup.
103104 *
104- * @param \Illuminate\Foundation\Application $app
105+ * @param \Illuminate\Foundation\Application $app
105106 * @return void
106107 */
107108 protected function getEnvironmentSetUp ($ app )
@@ -111,14 +112,24 @@ protected function getEnvironmentSetUp($app)
111112
112113 public function createEmail ($ overwrite = [])
113114 {
115+ $ params = array_merge ([
116+ 'label ' => 'welcome ' ,
117+ 'recipient ' => 'john@doe.com ' ,
118+ 'cc ' => null ,
119+ 'bcc ' => null ,
120+ 'subject ' => 'test ' ,
121+ 'view ' => 'tests::dummy ' ,
122+ 'variables ' => ['name ' => 'John Doe ' ],
123+ ], $ overwrite );
124+
114125 return Email::compose ()
115- ->label ($ overwrite ['label ' ] ?? ' welcome ' )
116- ->recipient ($ overwrite ['recipient ' ] ?? ' john@doe.com ' )
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 ' ]);
122133 }
123134
124135 public function sendEmail ($ overwrite = [])
0 commit comments