File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
app/code/Magento/Paypal/Test/Unit/Model/Payflow Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -125,15 +125,21 @@ public function testCaptureCorrectId(string $parentTransactionId)
125
125
$ gatewayToken = 'gateway_token ' ;
126
126
$ this ->payment ->expects ($ this ->once ())->method ('getParentTransactionId ' )->willReturn ($ parentTransactionId );
127
127
$ this ->payment ->expects ($ this ->exactly ($ setParentTransactionIdCalls ))->method ('setParentTransactionId ' );
128
- $ this ->payment ->expects ($ this ->exactly ($ setAdditionalInformationCalls ))->method ('setAdditionalInformation ' )->with (Payflowpro::PNREF , $ gatewayToken );
128
+ $ this ->payment ->expects ($ this ->exactly ($ setAdditionalInformationCalls ))
129
+ ->method ('setAdditionalInformation ' )
130
+ ->with (Payflowpro::PNREF , $ gatewayToken );
129
131
$ this ->payment ->expects ($ this ->exactly (4 ))->method ('getAdditionalInformation ' )->withConsecutive (
130
132
['result_code ' ],
131
133
[Payflowpro::PNREF ],
132
134
[Payflowpro::PNREF ],
133
135
[Payflowpro::PNREF ],
134
136
)->willReturn (0 , '' , Payflowpro::PNREF , Payflowpro::PNREF );
135
- $ this ->paymentExtensionAttributes ->expects ($ this ->once ())->method ('getVaultPaymentToken ' )->willReturn ($ this ->paymentToken );
136
- $ this ->paymentToken ->expects ($ this ->exactly ($ getGatewayTokenCalls ))->method ('getGatewayToken ' )->willReturn ($ gatewayToken );
137
+ $ this ->paymentExtensionAttributes ->expects ($ this ->once ())
138
+ ->method ('getVaultPaymentToken ' )
139
+ ->willReturn ($ this ->paymentToken );
140
+ $ this ->paymentToken ->expects ($ this ->exactly ($ getGatewayTokenCalls ))
141
+ ->method ('getGatewayToken ' )
142
+ ->willReturn ($ gatewayToken );
137
143
138
144
$ this ->subject ->capture ($ this ->payment , 100 );
139
145
}
You can’t perform that action at this time.
0 commit comments