Skip to content

Commit

Permalink
MDL-48426 behat: soft-reset mink session before scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
Rajesh Taneja committed Dec 1, 2014
1 parent 146dbac commit 55f4734
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tests/behat/behat_hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ public function before_scenario($event) {
behat_context_helper::set_session($session);
}

// Reset mink session between the scenarios.
$session->reset();

// Reset $SESSION.
\core\session\manager::init_empty_session();

Expand Down

0 comments on commit 55f4734

Please sign in to comment.