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 f826d0f commit 8636996Copy full SHA for 8636996
src/Illuminate/Foundation/Testing/RefreshDatabase.php
@@ -108,6 +108,11 @@ public function beginDatabaseTransaction()
108
$dispatcher = $connection->getEventDispatcher();
109
110
$connection->unsetEventDispatcher();
111
+
112
+ if (! $connection->getPdo()->inTransaction()) {
113
+ RefreshDatabaseState::$migrated = false;
114
+ }
115
116
$connection->rollBack();
117
$connection->setEventDispatcher($dispatcher);
118
$connection->disconnect();
0 commit comments