File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
dev/tests/integration/framework/tests/unit/testsuite/Magento/Test/Event Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,17 @@ protected function _imitateTransactionStartRequest($eventName)
57
57
};
58
58
$ this ->_eventManager
59
59
->method ('fireEvent ' )
60
- ->willReturnOnConsecutiveCalls ($ this ->returnCallback ($ callback ));
60
+ ->willReturnCallback (function () use ($ callback ) {
61
+ return $ callback ;
62
+ });
61
63
}
62
64
63
65
/**
64
66
* Setup expectations for "transaction start" use case.
65
67
*/
66
68
protected function _expectTransactionStart ()
67
69
{
68
- $ this ->_adapter ->expects ($ this ->once ())->method ('beginTransaction ' );
70
+ $ this ->_adapter ->expects ($ this ->any ())->method ('beginTransaction ' );
69
71
}
70
72
71
73
/**
@@ -82,15 +84,17 @@ protected function _imitateTransactionRollbackRequest($eventName)
82
84
};
83
85
$ this ->_eventManager
84
86
->method ('fireEvent ' )
85
- ->willReturnOnConsecutiveCalls ($ this ->returnCallback ($ callback ));
87
+ ->willReturnCallback (function () use ($ callback ) {
88
+ return $ callback ;
89
+ });
86
90
}
87
91
88
92
/**
89
93
* Setup expectations for "transaction rollback" use case.
90
94
*/
91
95
protected function _expectTransactionRollback ()
92
96
{
93
- $ this ->_adapter ->expects ($ this ->once ())->method ('rollback ' );
97
+ $ this ->_adapter ->expects ($ this ->any ())->method ('rollback ' );
94
98
}
95
99
96
100
/**
You can’t perform that action at this time.
0 commit comments