@@ -79,7 +79,10 @@ public function testSend()
79
79
->create (\Magento \Sales \Model \Order \Email \Sender \ShipmentSender::class);
80
80
$ result = $ orderSender ->send ($ shipment , true );
81
81
$ this ->assertFalse (
82
- array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
82
+ array_search (
83
+ 'Environment emulation nesting is not allowed. ' ,
84
+ array_column ($ this ->logger ->getMessages (), 'message ' )
85
+ )
83
86
);
84
87
$ this ->assertTrue ($ result );
85
88
@@ -107,7 +110,10 @@ public function testSendWhenCustomerEmailWasModified()
107
110
$ result = $ shipmentSender ->send ($ shipment , true );
108
111
109
112
$ this ->assertFalse (
110
- array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
113
+ array_search (
114
+ 'Environment emulation nesting is not allowed. ' ,
115
+ array_column ($ this ->logger ->getMessages (), 'message ' )
116
+ )
111
117
);
112
118
$ this ->assertEquals (self ::NEW_CUSTOMER_EMAIL , $ shipmentIdentity ->getCustomerEmail ());
113
119
$ this ->assertTrue ($ result );
@@ -131,7 +137,10 @@ public function testSendWhenCustomerEmailWasNotModified()
131
137
$ result = $ shipmentSender ->send ($ shipment , true );
132
138
133
139
$ this ->assertFalse (
134
- array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
140
+ array_search (
141
+ 'Environment emulation nesting is not allowed. ' ,
142
+ array_column ($ this ->logger ->getMessages (), 'message ' )
143
+ )
135
144
);
136
145
$ this ->assertEquals (self ::OLD_CUSTOMER_EMAIL , $ shipmentIdentity ->getCustomerEmail ());
137
146
$ this ->assertTrue ($ result );
@@ -158,8 +167,10 @@ public function testSendWithoutCustomer()
158
167
$ result = $ shipmentSender ->send ($ shipment , true );
159
168
160
169
$ this ->assertFalse (
161
- array_search ('Environment emulation nesting is not allowed. ' ,
162
- array_column ($ this ->logger ->getMessages (), 'message ' ))
170
+ array_search (
171
+ 'Environment emulation nesting is not allowed. ' ,
172
+ array_column ($ this ->logger ->getMessages (), 'message ' )
173
+ )
163
174
);
164
175
$ this ->assertEquals (self ::ORDER_EMAIL , $ shipmentIdentity ->getCustomerEmail ());
165
176
$ this ->assertTrue ($ result );
0 commit comments