File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
dev/tests/integration/testsuite/Magento/Sales/Model/AdminOrder Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ public function testInitFromOrderCcInformationDeleted()
123
123
}
124
124
125
125
/**
126
- * @magentoDataFixture Magento/Sales/_files/order_paid_with_payflowpro .php
126
+ * @magentoDataFixture Magento/Sales/_files/order .php
127
127
*/
128
128
public function testInitFromOrderWithEmptyPaymentDetails ()
129
129
{
@@ -136,13 +136,16 @@ public function testInitFromOrderWithEmptyPaymentDetails()
136
136
$ objectManager ->get (Registry::class)
137
137
->unregister ('rule_data ' );
138
138
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 ' );
142
144
143
145
static ::assertEmpty ($ payment ->getMethod ());
144
146
static ::assertEmpty ($ payment ->getAdditionalInformation ());
145
147
static ::assertEmpty ($ payment ->getAdditionalData ());
148
+ static ::assertEmpty ($ payment ->getData ());
146
149
}
147
150
148
151
/**
You can’t perform that action at this time.
0 commit comments