Skip to content

Commit 54cfa97

Browse files
glo23503devarul
authored andcommitted
ACP2E-1341: [On-Premise] Merchant Informed Core Issue Magento 2.4.4 main.ERROR: Environment emulation nesting is not allowed
1 parent 397cd22 commit 54cfa97

File tree

1 file changed

+8
-20
lines changed

1 file changed

+8
-20
lines changed

dev/tests/integration/testsuite/Magento/Sales/Model/Order/Email/Sender/ShipmentSenderTest.php

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,8 @@ public function testSend()
7878
$orderSender = $this->objectManager
7979
->create(\Magento\Sales\Model\Order\Email\Sender\ShipmentSender::class);
8080
$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')));
8683
$this->assertTrue($result);
8784

8885
$this->assertNotEmpty($shipment->getEmailSent());
@@ -108,11 +105,8 @@ public function testSendWhenCustomerEmailWasModified()
108105
$this->assertEmpty($shipment->getEmailSent());
109106
$result = $shipmentSender->send($shipment, true);
110107

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')));
116110
$this->assertEquals(self::NEW_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
117111
$this->assertTrue($result);
118112
$this->assertNotEmpty($shipment->getEmailSent());
@@ -134,11 +128,8 @@ public function testSendWhenCustomerEmailWasNotModified()
134128
$this->assertEmpty($shipment->getEmailSent());
135129
$result = $shipmentSender->send($shipment, true);
136130

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')));
142133
$this->assertEquals(self::OLD_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
143134
$this->assertTrue($result);
144135
$this->assertNotEmpty($shipment->getEmailSent());
@@ -163,11 +154,8 @@ public function testSendWithoutCustomer()
163154
$this->assertEmpty($shipment->getEmailSent());
164155
$result = $shipmentSender->send($shipment, true);
165156

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')));
171159
$this->assertEquals(self::ORDER_EMAIL, $shipmentIdentity->getCustomerEmail());
172160
$this->assertTrue($result);
173161
$this->assertNotEmpty($shipment->getEmailSent());

0 commit comments

Comments
 (0)