MDL-37894 Amend tests with new openclose rule.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 20 Feb 2013 00:36:20 +0000 (01:36 +0100)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 20 Feb 2013 00:37:30 +0000 (01:37 +0100)
mod/quiz/accessrule/openclosedate/tests/rule_test.php

index 4d85d33..70cb819 100644 (file)
@@ -153,7 +153,8 @@ class quizaccess_openclosedate_testcase extends basic_testcase {
 
         $rule = new quizaccess_openclosedate($quizobj, 9999);
         $this->assertEquals($rule->description(),
-            array(get_string('quiznotavailable', 'quizaccess_openclosedate', userdate(10000))));
+            array(get_string('quiznotavailable', 'quizaccess_openclosedate', userdate(10000)),
+                    get_string('quizcloseson', 'quiz', userdate(20000))));
         $this->assertEquals($rule->prevent_access(),
             get_string('notavailable', 'quizaccess_openclosedate'));
         $this->assertFalse($rule->prevent_new_attempt(0, $attempt));