Skip to content

Commit

Permalink
Merge branch 'MDL-62834-master' of git://github.com/andrewnicols/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
snake committed Jul 4, 2018
2 parents ab044c6 + 481548f commit 7eb7e4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/tests/behat/behat_filters.php
Expand Up @@ -23,11 +23,10 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php.
// Note: You cannot use MOODLE_INTERNAL test here, or include files which do so.
// This file is required by behat before including /config.php.

require_once(__DIR__ . '/../../behat/behat_base.php');
require_once(__DIR__ . '/../../filterlib.php');


/**
* Steps definitions related to filters.
Expand All @@ -48,6 +47,8 @@ class behat_filters extends behat_base {
* @param string $statename 'on', 'off' or 'disabled'.
*/
public function the_filter_is($filtername, $statename) {
require_once(__DIR__ . '/../../filterlib.php');

switch ($statename) {
case 'on':
$state = TEXTFILTER_ON;
Expand Down

0 comments on commit 7eb7e4b

Please sign in to comment.