You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[11.x] Skip the number of connections transacting while testing to run callbacks (#53377)
* Skip the number of connections transacting while testing to run callbacks
The testing DatabaseTransactionsManager was hardcoding the number of
connections to skip as 1. In a multi-db context, it must skip the same
number of connections transacting defined on the tests.
* Pass the connection names array instead of the number of connections
* Fix tests for the testing DatabaseTransactionsManager
* Fix DatabaseTransactions trait
* [11.x] Test Improvements
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
* wip
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
* wip
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
* wip
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
* Adds tests for afterCommit callbacks when using multi-dbs
* Update DatabaseTransactionsManager.php
---------
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Co-authored-by: Mior Muhammad Zaki <crynobone@gmail.com>
Co-authored-by: Taylor Otwell <taylor@laravel.com>
class EloquentTransactionWithAfterCommitUsingRefreshDatabaseOnMultipleConnectionsTest extends EloquentTransactionWithAfterCommitUsingRefreshDatabaseTest
0 commit comments