MDL-59524 general: Remove strings deprecated in 3.4

This commit is contained in:
cescobedo 2019-08-12 00:13:08 +02:00
parent 8e9e9a5f7e
commit 0504254f1d
16 changed files with 8 additions and 246 deletions

View file

@ -75,11 +75,11 @@ class core_string_manager_standard_testcase extends advanced_testcase {
$this->assertFalse($stringman->string_deprecated('hidden', 'grades'));
// Check deprecated string.
$this->assertTrue($stringman->string_deprecated('groupextendenrol', 'core'));
$this->assertTrue($stringman->string_exists('groupextendenrol', 'core'));
$this->assertTrue($stringman->string_deprecated('purgedefinitionsuccess', 'core_cache'));
$this->assertTrue($stringman->string_exists('purgedefinitionsuccess', 'core_cache'));
$this->assertDebuggingNotCalled();
$this->assertEquals('Extend enrolment (common)', get_string('groupextendenrol', 'core'));
$this->assertDebuggingCalled('String [groupextendenrol,core] is deprecated. '.
$this->assertEquals('Successfully purged the requested definition.', get_string('purgedefinitionsuccess', 'core_cache'));
$this->assertDebuggingCalled('String [purgedefinitionsuccess,core_cache] 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');
}