1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-07 09:23:31 +02:00

MDL-74954 core: remove failing hooks test for now

This commit is contained in:
Petr Skoda 2023-05-22 13:21:53 +02:00
parent 07a1dc04f8
commit d57acd957c

@ -224,20 +224,6 @@ class manager_test extends \advanced_testcase {
$this->assertFalse($testmanager->is_deprecated_plugin_callback('legacycallback'));
}
/**
* Test detection of legacy callbacks.
* @covers ::is_deprecating_hook_present
*/
public function testy_is_deprecating_hook_present() {
$componentfiles = [
'test_plugin1' => __DIR__ . '/../fixtures/hook/hooks1_valid.php',
];
$testmanager = manager::phpunit_get_instance($componentfiles);
// There is not much to test because there should not be any legacy callbacks left,
// plugin that have these should test their code.
$this->assertFalse($testmanager->is_deprecating_hook_present('test_pluing', 'xyz'));
}
/**
* Tests callbacks can be overridden via CFG settings.
* @covers ::load_callbacks