Skip to content

Commit 584cb22

Browse files
author
yuri kovsher
committed
MAGETWO-38793: PR prep and processing: Stories
1 parent 0b0c1b1 commit 584cb22

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/Sales/Test/Unit/Model/Order/PaymentTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,12 @@ public function testPlace()
255255
->method('getMethodInstance')
256256
->will($this->returnValue($this->paymentMethodMock));
257257

258-
$this->mockGetDefaultStatus(Order::STATE_NEW, $newOrderStatus, ['first', 'second']);
258+
$this->paymentMethodMock->expects($this->any())
259+
->method('getConfigData')
260+
->with('order_status', null)
261+
->willReturn($newOrderStatus);
259262

263+
$this->mockGetDefaultStatus(Order::STATE_NEW, $newOrderStatus, ['first', 'second']);
260264
$this->assertOrderUpdated(Order::STATE_NEW, $newOrderStatus);
261265

262266
$this->paymentMethodMock->expects($this->once())

0 commit comments

Comments
 (0)