We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fea108 commit 51cdabfCopy full SHA for 51cdabf
src/Illuminate/Foundation/Testing/DatabaseTransactions.php
@@ -20,6 +20,12 @@ public function beginDatabaseTransaction()
20
$connection->unsetEventDispatcher();
21
$connection->beginTransaction();
22
$connection->setEventDispatcher($dispatcher);
23
+
24
+ if ($this->app->resolved('db.transactions')) {
25
+ $this->app->make('db.transactions')->callbacksShouldIgnore(
26
+ $this->app->make('db.transactions')->getTransactions()->first()
27
+ );
28
+ }
29
}
30
31
$this->beforeApplicationDestroyed(function () use ($database) {
0 commit comments