Skip to content

Commit b60885a

Browse files
committed
Merge remote-tracking branch 'ctam-kaltura/UCSFCLE_405_STABLE' into UCSFCLE_405-Merge_Kaltura_plugin_repo
2 parents 8657e60 + f27ba4a commit b60885a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

filter/kaltura/db/install.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,10 @@ function xmldb_filter_kaltura_install() {
2525
global $CFG;
2626
require_once("$CFG->libdir/filterlib.php");
2727

28-
filter_set_global_state('kaltura', TEXTFILTER_ON);
28+
// 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+
2934
}

0 commit comments

Comments
 (0)