MDL-48470 strings: Fix unit tests by moving to another string.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 8 Jun 2015 20:53:06 +0000 (22:53 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 8 Jun 2015 20:53:06 +0000 (22:53 +0200)
lib/tests/string_manager_standard_test.php

index ae7fc1b..e2a6776 100644 (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('hidden', 'repository'));
-        $this->assertTrue($stringman->string_exists('hidden', 'repository'));
+        $this->assertTrue($stringman->string_deprecated('timelimitmin', 'mod_quiz'));
+        $this->assertTrue($stringman->string_exists('timelimitmin', 'mod_quiz'));
         $this->assertDebuggingNotCalled();
-        $this->assertEquals('Hidden', get_string('hidden', 'repository'));
-        $this->assertDebuggingCalled('String [hidden,core_repository] is deprecated. '.
+        $this->assertEquals('Time limit (minutes)', get_string('timelimitmin', 'mod_quiz'));
+        $this->assertDebuggingCalled('String [timelimitmin,mod_quiz] 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');
     }