MDL-54742 general: Remove strings deprecated in 3.2

This commit is contained in:
Mihail Geshoski
2018-07-23 14:25:14 +08:00
parent 0180369b27
commit 10bd37fabd
16 changed files with 5 additions and 109 deletions
+4 -4
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('modchooserenable', 'core'));
$this->assertTrue($stringman->string_exists('modchooserenable', 'core'));
$this->assertTrue($stringman->string_deprecated('groupextendenrol', 'core'));
$this->assertTrue($stringman->string_exists('groupextendenrol', 'core'));
$this->assertDebuggingNotCalled();
$this->assertEquals('Activity chooser on', get_string('modchooserenable', 'core'));
$this->assertDebuggingCalled('String [modchooserenable,core] is deprecated. '.
$this->assertEquals('Extend enrolment (common)', get_string('groupextendenrol', 'core'));
$this->assertDebuggingCalled('String [groupextendenrol,core] 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');
}