MDL-81386 output: Fix failure in PHPUnit when running filtered tests
commit4538be8ee17f6161c2c303eda7e7582adc94556d
authorSara Arjona <sara@moodle.com>
Wed, 3 Apr 2024 06:50:37 +0000 (3 08:50 +0200)
committerSara Arjona <sara@moodle.com>
Wed, 3 Apr 2024 06:52:56 +0000 (3 08:52 +0200)
tree3eb0851d7696e369233c6b641f14442decb5325d
parent4da813d35e421c818579b3fb811cb56d822120c7
MDL-81386 output: Fix failure in PHPUnit when running filtered tests

There was a data provider to get the list of the FontAwesome icons that
was initialized when running filtered tests.
It was causing some failures with filtered tests that, for instance,
called require_login and changed the course.
To avoid this failure (and also to improve the performance), the logic
to get the icons list has been moved to the test.
lib/tests/output/icon_system_fontawesome_test.php