Skip to content

Commit

Permalink
MDL-74954 core: remove failing hooks test for now
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed May 22, 2023
1 parent 07a1dc0 commit d57acd9
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lib/tests/hook/manager_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,20 +224,6 @@ public function testy_is_deprecated_plugin_callback() {
$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
Expand Down

0 comments on commit d57acd9

Please sign in to comment.