mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-37894 Amend tests with new openclose rule.
This commit is contained in:
parent
5d719ed8ec
commit
feb843633d
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ class quizaccess_openclosedate_testcase extends basic_testcase {
|
||||||
|
|
||||||
$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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue