MDL-65801 lang: final removal of deprecated 37/38 strings.

The following lang strings have been undepecated, as they are still
in use:

* errorcoursewronglypublished, core_hub
* eventrolecapabilitiesupdated, core_role
This commit is contained in:
Paul Holden
2022-01-13 09:50:50 +00:00
parent e78184d827
commit 6ed8458eda
27 changed files with 7 additions and 272 deletions
+5 -5
View File
@@ -74,12 +74,12 @@ class core_string_manager_standard_testcase extends advanced_testcase {
// Check non-deprecated string.
$this->assertFalse($stringman->string_deprecated('hidden', 'grades'));
// Check deprecated string.
$this->assertTrue($stringman->string_deprecated('purgedefinitionsuccess', 'core_cache'));
$this->assertTrue($stringman->string_exists('purgedefinitionsuccess', 'core_cache'));
// Check deprecated string, make sure to update once that chosen below is finally removed.
$this->assertTrue($stringman->string_deprecated('coursepage', 'core_admin'));
$this->assertTrue($stringman->string_exists('coursepage', 'core_admin'));
$this->assertDebuggingNotCalled();
$this->assertEquals('Successfully purged the requested definition.', get_string('purgedefinitionsuccess', 'core_cache'));
$this->assertDebuggingCalled('String [purgedefinitionsuccess,core_cache] is deprecated. '.
$this->assertEquals('Course page', get_string('coursepage', 'core_admin'));
$this->assertDebuggingCalled('String [coursepage,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://docs.moodle.org/dev/String_deprecation');
}