We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba11e50 commit 5568e0bCopy full SHA for 5568e0b
tests/features/bootstrap/SettingsContext.php
@@ -8,6 +8,7 @@
8
9
use Behat\Behat\Context\Context;
10
use Behat\Behat\Hook\Scope\BeforeScenarioScope;
11
+use Behat\Hook\AfterScenario;
12
use Behat\Hook\BeforeScenario;
13
use Behat\Step\Then;
14
use Behat\Step\When;
@@ -38,6 +39,11 @@ public function gatherContexts(BeforeScenarioScope $scope) {
38
39
]);
40
}
41
42
+ #[AfterScenario]
43
+ public function cleanup() {
44
+ $this->httpResponse = null;
45
+ }
46
+
47
#[When('the admin settings are requested by a user')]
48
public function userRequestAdminSettings() {
49
$this->serverContext->actingAsUser('user1');
0 commit comments