We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8657e60 + f27ba4a commit b60885aCopy full SHA for b60885a
filter/kaltura/db/install.php
@@ -25,5 +25,10 @@ function xmldb_filter_kaltura_install() {
25
global $CFG;
26
require_once("$CFG->libdir/filterlib.php");
27
28
- filter_set_global_state('kaltura', TEXTFILTER_ON);
+ // Do not enable the filter when running unit tests because some core
29
+ // tests expect a specific number of filters enabled.
30
+ if (!defined('PHPUNIT_TEST') || !PHPUNIT_TEST) {
31
+ filter_set_global_state('kaltura', TEXTFILTER_ON);
32
+ }
33
+
34
}
0 commit comments