MDL-76565 core: Final removal of deprecated strings

Signed-off-by: Daniel Ziegenberg <[email protected]>
This commit is contained in:
Daniel Ziegenberg
2025-03-16 19:52:41 +01:00
parent 8f89677192
commit af878dc381
67 changed files with 34 additions and 566 deletions
+9 -5
View File
@@ -83,12 +83,16 @@ final class string_manager_standard_test extends \advanced_testcase {
$this->assertFalse($stringman->string_deprecated('hidden', 'grades'));
// Check deprecated string, make sure to update once that chosen below is finally removed.
$this->assertTrue($stringman->string_deprecated('selectdevice', 'core_admin'));
$this->assertTrue($stringman->string_exists('selectdevice', 'core_admin'));
$this->assertTrue($stringman->string_deprecated('importantupdates_title', 'core_admin'));
$this->assertTrue($stringman->string_exists('importantupdates_title', 'core_admin'));
$this->assertDebuggingNotCalled();
$this->assertEquals('Select device', get_string('selectdevice', 'core_admin'));
$this->assertDebuggingCalled('String [selectdevice,core_admin] is deprecated. '.
'Either you should no longer be using that string, or the string has been incorrectly deprecated, in which case you should report this as a bug. '.
$this->assertEquals(
'Important update about Chat and Survey activities',
get_string('importantupdates_title', 'core_admin')
);
$this->assertDebuggingCalled('String [importantupdates_title,core_admin] is deprecated. '.
'Either you should no longer be using that string, or the string has been incorrectly deprecated, '.
'in which case you should report this as a bug. '.
'Please refer to https://moodledev.io/general/projects/api/string-deprecation');
}