Skip to content

Commit eb0cf18

Browse files
author
pbromboszcz
committed
Add PHP 8.5 and drop support for PHP < 8.2
1 parent e03729b commit eb0cf18

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Codeception/Module/MongoDb.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ public function _initialize(): void
122122
$this->cleanup();
123123
$this->loadDump();
124124
$this->populated = true;
125+
126+
if ($this->config['cleanup'] === 'dirty') {
127+
$this->dbHash = $this->driver->getDbHash();
128+
}
125129
}
126130
}
127131

@@ -205,10 +209,6 @@ public function _before(TestInterface $test): void
205209
if ($this->shouldCleanup()) {
206210
$this->cleanup();
207211
$this->loadDump();
208-
209-
if ($this->config['cleanup'] === 'dirty') {
210-
$this->dbHash = $this->driver->getDbHash();
211-
}
212212
}
213213
}
214214

0 commit comments

Comments
 (0)