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