File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
tests/TestCase/Mailer/Transport Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public function send(Email $email) {
4949 'template ' => $ email ->template (), //template() gives 2 values - template and layout
5050 'viewVars ' => [$ email ->viewVars ()]
5151 ];
52-
52+
5353 foreach ($ settings as $ setting => $ value ) {
5454 if (array_key_exists (0 , $ value ) && ($ value [0 ] === null || $ value [0 ] === [])) {
5555 unset($ settings [$ setting ]);
Original file line number Diff line number Diff line change @@ -111,13 +111,14 @@ public function testSendWithEmail() {
111111 $ this ->assertEquals ($ emailReconstructed ->domain (), $ Email ->domain ());
112112 $ this ->assertEquals ($ emailReconstructed ->theme (), $ Email ->theme ());
113113 $ this ->assertEquals ($ emailReconstructed ->profile (), $ Email ->profile ());
114- $ this ->assertEquals ($ emailReconstructed ->viewVars (),$ Email ->viewVars ());
115- $ this ->assertEquals ($ emailReconstructed ->template (),$ Email ->template ());
116-
114+ $ this ->assertEquals ($ emailReconstructed ->viewVars (), $ Email ->viewVars ());
115+ $ this ->assertEquals ($ emailReconstructed ->template (), $ Email ->template ());
116+
117117 //for now cannot be done 'data' is base64_encode on set but not decoded when get from $email
118118 //$this->assertEquals($emailReconstructed->attachments(),$Email->attachments());
119119
120120 //debug($output);
121121 //$this->assertEquals($Email, $output['settings']);
122122 }
123+
123124}
You can’t perform that action at this time.
0 commit comments