MDL-42332 Automate MDLQA-5260 and MDLQA-5261 - A badge can be awarded based on activi...
[moodle.git] / lib / tests / behat / behat_general.php
index deafdfc..50c9dce 100644 (file)
@@ -642,4 +642,13 @@ class behat_general extends behat_base {
         }
     }
 
+    /**
+     * This step triggers cron like a user would do going to admin/cron.php.
+     *
+     * @Given /^I trigger cron$/
+     */
+    public function i_trigger_cron() {
+        $this->getSession()->visit($this->locate_path('/admin/cron.php'));
+    }
+
 }