File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
app/code/Magento/Payment/Test/Unit/Model/Method Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -117,25 +117,22 @@ public function testFetchTransactionInfo()
117
117
$ paymentInfo = $ this ->getMockForAbstractClass (InfoInterface::class);
118
118
$ paymentDO = $ this ->getMockForAbstractClass (PaymentDataObjectInterface::class);
119
119
120
- $ this ->valueHandlerPool ->expects (static ::once ())
121
- ->method ('get ' )
120
+ $ this ->valueHandlerPool ->method ('get ' )
122
121
->with ('can_fetch_transaction_information ' )
123
122
->willReturn ($ valueHandler );
124
- $ valueHandler ->expects (static :: once ())
123
+ $ valueHandler ->expects ($ this -> atLeastOnce ())
125
124
->method ('handle ' )
126
125
->with (['field ' => 'can_fetch_transaction_information ' ])
127
126
->willReturn (true );
128
127
129
- $ this ->paymentDataObjectFactory ->expects (static ::once ())
130
- ->method ('create ' )
128
+ $ this ->paymentDataObjectFactory ->method ('create ' )
131
129
->with ($ paymentInfo )
132
130
->willReturn ($ paymentDO );
133
131
134
- $ this ->commandPool ->expects (static ::once ())
135
- ->method ('get ' )
132
+ $ this ->commandPool ->method ('get ' )
136
133
->with ('fetch_transaction_information ' )
137
134
->willReturn ($ command );
138
- $ command ->expects (static :: once ())
135
+ $ command ->expects ($ this -> atLeastOnce ())
139
136
->method ('execute ' )
140
137
->with (['transactionId ' => $ transactionId , 'payment ' => $ paymentDO ])
141
138
->willReturn ($ transactionInfo );
You can’t perform that action at this time.
0 commit comments