Skip to content

Commit

Permalink
MDL-37894 Amend tests with new openclose rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Feb 20, 2013
1 parent 349c224 commit 3b00c13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/quiz/accessrule/openclosedate/tests/rule_test.php
Expand Up @@ -153,7 +153,8 @@ public function test_both_dates() {


$rule = new quizaccess_openclosedate($quizobj, 9999); $rule = new quizaccess_openclosedate($quizobj, 9999);
$this->assertEquals($rule->description(), $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(), $this->assertEquals($rule->prevent_access(),
get_string('notavailable', 'quizaccess_openclosedate')); get_string('notavailable', 'quizaccess_openclosedate'));
$this->assertFalse($rule->prevent_new_attempt(0, $attempt)); $this->assertFalse($rule->prevent_new_attempt(0, $attempt));
Expand Down

0 comments on commit 3b00c13

Please sign in to comment.