Skip to content

Commit 1ac3838

Browse files
committed
ACP2E-296: Wrong customer name in order with paypal payment
- modify test
1 parent 84e870b commit 1ac3838

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/tests/integration/testsuite/Magento/Paypal/Model/Express/CheckoutTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,10 +220,14 @@ public function testPlaceGuestQuote($accountEmail, $expected)
220220
$this->assertEquals($expected, $quote->getCustomerEmail());
221221
$this->assertNotEmpty($quote->getBillingAddress());
222222
$this->assertNotEmpty($quote->getShippingAddress());
223+
$this->assertEquals($quote->getBillingAddress()->getFirstname(), $quote->getCustomerFirstname());
224+
$this->assertEquals($quote->getBillingAddress()->getLastname(), $quote->getCustomerLastname());
223225

224226
$order = $checkout->getOrder();
225227
$this->assertNotEmpty($order->getBillingAddress());
226228
$this->assertNotEmpty($order->getShippingAddress());
229+
$this->assertEquals($quote->getBillingAddress()->getFirstname(), $order->getCustomerFirstname());
230+
$this->assertEquals($quote->getBillingAddress()->getLastname(), $order->getCustomerLastname());
227231
}
228232

229233
/**

0 commit comments

Comments
 (0)