We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e03729b commit eb0cf18Copy full SHA for eb0cf18
1 file changed
src/Codeception/Module/MongoDb.php
@@ -122,6 +122,10 @@ public function _initialize(): void
122
$this->cleanup();
123
$this->loadDump();
124
$this->populated = true;
125
+
126
+ if ($this->config['cleanup'] === 'dirty') {
127
+ $this->dbHash = $this->driver->getDbHash();
128
+ }
129
}
130
131
@@ -205,10 +209,6 @@ public function _before(TestInterface $test): void
205
209
if ($this->shouldCleanup()) {
206
210
207
211
208
-
- if ($this->config['cleanup'] === 'dirty') {
- $this->dbHash = $this->driver->getDbHash();
- }
212
213
214
0 commit comments