Skip to content

Commit 8bf55bc

Browse files
committed
MAGETWO-53238: Vault Provider field contains Payflow Pro option in countries which don't have such solution
- Updated integration test
1 parent 281d0a8 commit 8bf55bc

File tree

1 file changed

+7
-4
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder

1 file changed

+7
-4
lines changed

dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder/CreateTest.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function testInitFromOrderCcInformationDeleted()
123123
}
124124

125125
/**
126-
* @magentoDataFixture Magento/Sales/_files/order_paid_with_payflowpro.php
126+
* @magentoDataFixture Magento/Sales/_files/order.php
127127
*/
128128
public function testInitFromOrderWithEmptyPaymentDetails()
129129
{
@@ -136,13 +136,16 @@ public function testInitFromOrderWithEmptyPaymentDetails()
136136
$objectManager->get(Registry::class)
137137
->unregister('rule_data');
138138

139-
$payment = $this->_model->initFromOrder($order)
140-
->getQuote()
141-
->getPayment();
139+
$initOrder = $this->_model->initFromOrder($order);
140+
$payment = $initOrder->getQuote()->getPayment();
141+
142+
static::assertEquals($initOrder->getQuote()->getId(), $payment->getData('quote_id'));
143+
$payment->unsetData('quote_id');
142144

143145
static::assertEmpty($payment->getMethod());
144146
static::assertEmpty($payment->getAdditionalInformation());
145147
static::assertEmpty($payment->getAdditionalData());
148+
static::assertEmpty($payment->getData());
146149
}
147150

148151
/**

0 commit comments

Comments
 (0)