Skip to content

Commit 1b24ead

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 9610d52 commit 1b24ead

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

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

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ public function testSend()
7979
->create(\Magento\Sales\Model\Order\Email\Sender\ShipmentSender::class);
8080
$result = $orderSender->send($shipment, true);
8181
$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+
)
8386
);
8487
$this->assertTrue($result);
8588

@@ -107,7 +110,10 @@ public function testSendWhenCustomerEmailWasModified()
107110
$result = $shipmentSender->send($shipment, true);
108111

109112
$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+
)
111117
);
112118
$this->assertEquals(self::NEW_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
113119
$this->assertTrue($result);
@@ -131,7 +137,10 @@ public function testSendWhenCustomerEmailWasNotModified()
131137
$result = $shipmentSender->send($shipment, true);
132138

133139
$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+
)
135144
);
136145
$this->assertEquals(self::OLD_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
137146
$this->assertTrue($result);
@@ -158,8 +167,10 @@ public function testSendWithoutCustomer()
158167
$result = $shipmentSender->send($shipment, true);
159168

160169
$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+
)
163174
);
164175
$this->assertEquals(self::ORDER_EMAIL, $shipmentIdentity->getCustomerEmail());
165176
$this->assertTrue($result);

0 commit comments

Comments
 (0)