Skip to content

Commit f794070

Browse files
committed
MAGETWO-63239: [GITHUB] No possibility to save payment transaction details
1 parent 99e262d commit f794070

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

app/code/Magento/Payment/Test/Unit/Model/Method/AdapterTest.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,25 +117,22 @@ public function testFetchTransactionInfo()
117117
$paymentInfo = $this->getMockForAbstractClass(InfoInterface::class);
118118
$paymentDO = $this->getMockForAbstractClass(PaymentDataObjectInterface::class);
119119

120-
$this->valueHandlerPool->expects(static::once())
121-
->method('get')
120+
$this->valueHandlerPool->method('get')
122121
->with('can_fetch_transaction_information')
123122
->willReturn($valueHandler);
124-
$valueHandler->expects(static::once())
123+
$valueHandler->expects($this->atLeastOnce())
125124
->method('handle')
126125
->with(['field' => 'can_fetch_transaction_information'])
127126
->willReturn(true);
128127

129-
$this->paymentDataObjectFactory->expects(static::once())
130-
->method('create')
128+
$this->paymentDataObjectFactory->method('create')
131129
->with($paymentInfo)
132130
->willReturn($paymentDO);
133131

134-
$this->commandPool->expects(static::once())
135-
->method('get')
132+
$this->commandPool->method('get')
136133
->with('fetch_transaction_information')
137134
->willReturn($command);
138-
$command->expects(static::once())
135+
$command->expects($this->atLeastOnce())
139136
->method('execute')
140137
->with(['transactionId' => $transactionId, 'payment' => $paymentDO])
141138
->willReturn($transactionInfo);

0 commit comments

Comments
 (0)