Skip to content

Commit c137072

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 6919798 commit c137072

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

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

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ 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.', 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+
);
8284
$this->assertTrue($result);
8385

8486
$this->assertNotEmpty($shipment->getEmailSent());
@@ -104,7 +106,9 @@ public function testSendWhenCustomerEmailWasModified()
104106
$this->assertEmpty($shipment->getEmailSent());
105107
$result = $shipmentSender->send($shipment, true);
106108

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+
);
108112
$this->assertEquals(self::NEW_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
109113
$this->assertTrue($result);
110114
$this->assertNotEmpty($shipment->getEmailSent());
@@ -126,7 +130,9 @@ public function testSendWhenCustomerEmailWasNotModified()
126130
$this->assertEmpty($shipment->getEmailSent());
127131
$result = $shipmentSender->send($shipment, true);
128132

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+
);
130136
$this->assertEquals(self::OLD_CUSTOMER_EMAIL, $shipmentIdentity->getCustomerEmail());
131137
$this->assertTrue($result);
132138
$this->assertNotEmpty($shipment->getEmailSent());
@@ -151,7 +157,9 @@ public function testSendWithoutCustomer()
151157
$this->assertEmpty($shipment->getEmailSent());
152158
$result = $shipmentSender->send($shipment, true);
153159

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+
);
155163
$this->assertEquals(self::ORDER_EMAIL, $shipmentIdentity->getCustomerEmail());
156164
$this->assertTrue($result);
157165
$this->assertNotEmpty($shipment->getEmailSent());

0 commit comments

Comments
 (0)