MDL-48426 behat: soft-reset mink session before scenario
authorRajesh Taneja <rajesh@moodle.com>
Mon, 1 Dec 2014 04:39:42 +0000 (12:39 +0800)
committerRajesh Taneja <rajesh@moodle.com>
Mon, 1 Dec 2014 04:39:42 +0000 (12:39 +0800)
lib/tests/behat/behat_hooks.php

index e7f64f0..6e2653f 100644 (file)
@@ -193,6 +193,9 @@ class behat_hooks extends behat_base {
             behat_context_helper::set_session($session);
         }
 
+        // Reset mink session between the scenarios.
+        $session->reset();
+
         // Reset $SESSION.
         \core\session\manager::init_empty_session();