Skip to content

Commit 6919798

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 54cfa97 commit 6919798

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ 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(array_search('Environment emulation nesting is not allowed.',
82-
array_column($this->logger->getMessages(), 'message')));
81+
$this->assertFalse(array_search('Environment emulation nesting is not allowed.', array_column($this->logger->getMessages(), 'message')));
8382
$this->assertTrue($result);
8483

8584
$this->assertNotEmpty($shipment->getEmailSent());
@@ -105,8 +104,7 @@ public function testSendWhenCustomerEmailWasModified()
105104
$this->assertEmpty($shipment->getEmailSent());
106105
$result = $shipmentSender->send($shipment, true);
107106

108-
$this->assertFalse(array_search('Environment emulation nesting is not allowed.',
109-
array_column($this->logger->getMessages(), 'message')));
107+
$this->assertFalse(array_search('Environment emulation nesting is not allowed.', array_column($this->logger->getMessages(), 'message')));
110108
$this->assertEquals(self::NEW_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
111109
$this->assertTrue($result);
112110
$this->assertNotEmpty($shipment->getEmailSent());
@@ -128,8 +126,7 @@ public function testSendWhenCustomerEmailWasNotModified()
128126
$this->assertEmpty($shipment->getEmailSent());
129127
$result = $shipmentSender->send($shipment, true);
130128

131-
$this->assertFalse(array_search('Environment emulation nesting is not allowed.',
132-
array_column($this->logger->getMessages(), 'message')));
129+
$this->assertFalse(array_search('Environment emulation nesting is not allowed.', array_column($this->logger->getMessages(), 'message')));
133130
$this->assertEquals(self::OLD_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
134131
$this->assertTrue($result);
135132
$this->assertNotEmpty($shipment->getEmailSent());
@@ -154,8 +151,7 @@ public function testSendWithoutCustomer()
154151
$this->assertEmpty($shipment->getEmailSent());
155152
$result = $shipmentSender->send($shipment, true);
156153

157-
$this->assertFalse(array_search('Environment emulation nesting is not allowed.',
158-
array_column($this->logger->getMessages(), 'message')));
154+
$this->assertFalse(array_search('Environment emulation nesting is not allowed.', array_column($this->logger->getMessages(), 'message')));
159155
$this->assertEquals(self::ORDER_EMAIL, $shipmentIdentity->getCustomerEmail());
160156
$this->assertTrue($result);
161157
$this->assertNotEmpty($shipment->getEmailSent());

0 commit comments

Comments
 (0)