Skip to content

Commit 5568e0b

Browse files
elzodybackportbot[bot]
authored andcommitted
fix: add after-scenario cleanup
Signed-off-by: Elizabeth Danzberger <elizabeth@elzody.dev> [skip ci]
1 parent ba11e50 commit 5568e0b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/features/bootstrap/SettingsContext.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
use Behat\Behat\Context\Context;
1010
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
11+
use Behat\Hook\AfterScenario;
1112
use Behat\Hook\BeforeScenario;
1213
use Behat\Step\Then;
1314
use Behat\Step\When;
@@ -38,6 +39,11 @@ public function gatherContexts(BeforeScenarioScope $scope) {
3839
]);
3940
}
4041

42+
#[AfterScenario]
43+
public function cleanup() {
44+
$this->httpResponse = null;
45+
}
46+
4147
#[When('the admin settings are requested by a user')]
4248
public function userRequestAdminSettings() {
4349
$this->serverContext->actingAsUser('user1');

0 commit comments

Comments
 (0)