Skip to content

Commit

Permalink
Fix core unit tests failing
Browse files Browse the repository at this point in the history
  • Loading branch information
djarran authored and golenkovm committed Feb 14, 2024
1 parent 38c5d8e commit 9288f7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion filter/kaltura/db/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,10 @@ function xmldb_filter_kaltura_install() {
global $CFG;
require_once("$CFG->libdir/filterlib.php");

filter_set_global_state('kaltura', TEXTFILTER_ON);
// Do not enable the filter when running unit tests because some core
// tests expect a specific number of filters enabled.
if (!defined('PHPUNIT_TEST') || !PHPUNIT_TEST) {
filter_set_global_state('kaltura', TEXTFILTER_ON);
}

}

0 comments on commit 9288f7d

Please sign in to comment.