MDL-48374 behat: Added missing $session
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 3 Dec 2014 02:02:00 +0000 (03:02 +0100)
committerDan Poltawski <dan@moodle.com>
Thu, 4 Dec 2014 12:14:30 +0000 (12:14 +0000)
lib/tests/behat/behat_general.php

index 6c52a44..1844f10 100644 (file)
@@ -1298,6 +1298,8 @@ class behat_general extends behat_base {
      * @Given /^a new page should not have loaded since I started watching$/
      */
     public function a_new_page_should_not_have_loaded_since_i_started_watching() {
+        $session = $this->getSession();
+
         // Make sure page load tracking was started.
         if (!$this->pageloaddetectionrunning) {
             throw new ExpectationException(