File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Quote/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -837,7 +837,7 @@ public function testSubmit(): void
837
837
['order ' => $ order , 'quote ' => $ quote ]
838
838
]
839
839
);
840
- $ this ->lockManagerMock ->method ('isLocked ' )->willReturn (false );
840
+ $ this ->lockManagerMock ->method ('lock ' )->willReturn (true );
841
841
$ this ->quoteRepositoryMock ->expects ($ this ->once ())->method ('save ' )->with ($ quote );
842
842
$ this ->assertEquals ($ order , $ this ->model ->submit ($ quote , $ orderData ));
843
843
}
@@ -1378,6 +1378,7 @@ public function testSubmitForCustomer(): void
1378
1378
['order ' => $ order , 'quote ' => $ quote ]
1379
1379
]
1380
1380
);
1381
+ $ this ->lockManagerMock ->method ('lock ' )->willReturn (true );
1381
1382
$ this ->quoteRepositoryMock ->expects ($ this ->once ())->method ('save ' )->with ($ quote );
1382
1383
$ this ->assertEquals ($ order , $ this ->model ->submit ($ quote , $ orderData ));
1383
1384
}
@@ -1501,7 +1502,7 @@ public function testSubmitWithLockException(): void
1501
1502
['order ' => $ order , 'quote ' => $ quote ]
1502
1503
]
1503
1504
);
1504
- $ this ->lockManagerMock ->method ('isLocked ' )->willReturn (true );
1505
+ $ this ->lockManagerMock ->method ('lock ' )->willReturn (false );
1505
1506
1506
1507
$ this ->expectExceptionMessage (
1507
1508
'A server error stopped your order from being placed. Please try to place your order again. '
You can’t perform that action at this time.
0 commit comments