@@ -78,7 +78,9 @@ 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 (array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' )));
81
+ $ this ->assertFalse (
82
+ array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
83
+ );
82
84
$ this ->assertTrue ($ result );
83
85
84
86
$ this ->assertNotEmpty ($ shipment ->getEmailSent ());
@@ -104,7 +106,9 @@ public function testSendWhenCustomerEmailWasModified()
104
106
$ this ->assertEmpty ($ shipment ->getEmailSent ());
105
107
$ result = $ shipmentSender ->send ($ shipment , true );
106
108
107
- $ this ->assertFalse (array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' )));
109
+ $ this ->assertFalse (
110
+ array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
111
+ );
108
112
$ this ->assertEquals (self ::NEW_CUSTOMER_EMAIL , $ shipmentIdentity ->getCustomerEmail ());
109
113
$ this ->assertTrue ($ result );
110
114
$ this ->assertNotEmpty ($ shipment ->getEmailSent ());
@@ -126,7 +130,9 @@ public function testSendWhenCustomerEmailWasNotModified()
126
130
$ this ->assertEmpty ($ shipment ->getEmailSent ());
127
131
$ result = $ shipmentSender ->send ($ shipment , true );
128
132
129
- $ this ->assertFalse (array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' )));
133
+ $ this ->assertFalse (
134
+ array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
135
+ );
130
136
$ this ->assertEquals (self ::OLD_CUSTOMER_EMAIL , $ shipmentIdentity ->getCustomerEmail ());
131
137
$ this ->assertTrue ($ result );
132
138
$ this ->assertNotEmpty ($ shipment ->getEmailSent ());
@@ -151,7 +157,9 @@ public function testSendWithoutCustomer()
151
157
$ this ->assertEmpty ($ shipment ->getEmailSent ());
152
158
$ result = $ shipmentSender ->send ($ shipment , true );
153
159
154
- $ this ->assertFalse (array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' )));
160
+ $ this ->assertFalse (
161
+ array_search ('Environment emulation nesting is not allowed. ' , array_column ($ this ->logger ->getMessages (), 'message ' ))
162
+ );
155
163
$ this ->assertEquals (self ::ORDER_EMAIL , $ shipmentIdentity ->getCustomerEmail ());
156
164
$ this ->assertTrue ($ result );
157
165
$ this ->assertNotEmpty ($ shipment ->getEmailSent ());
0 commit comments