Skip to content
Browse files

MDL-37894 Amend tests with new openclose rule.

  • Loading branch information...
1 parent 349c224 commit 3b00c13bf120b88376c72b0ee1cf7f958f1bcbba @stronk7 stronk7 committed Feb 20, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/quiz/accessrule/openclosedate/tests/rule_test.php
View
3 mod/quiz/accessrule/openclosedate/tests/rule_test.php
@@ -153,7 +153,8 @@ public function test_both_dates() {
$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));

0 comments on commit 3b00c13

Please sign in to comment.
Something went wrong with that request. Please try again.