mirror of
https://github.com/moodle/moodle.git
synced 2025-04-18 23:15:38 +02:00
MDL-46986 mod_assign: Change the asserting to false
This commit is contained in:
parent
274962a1e7
commit
8c674e80ec
@ -1869,7 +1869,7 @@ Anchor link 2:<a title=\"bananas\" href=\"../logo-240x60.gif\">Link text</a>
|
||||
$this->setUser($manager);
|
||||
$gradingtable = new assign_grading_table($assign, 1, '', 0, true);
|
||||
$output = $assign->get_renderer()->render($gradingtable);
|
||||
$this->assertEquals(true, strpos($output, get_string('hiddenuser', 'assign')));
|
||||
$this->assertEquals(false, strpos($output, get_string('hiddenuser', 'assign')));
|
||||
$this->assertEquals(true, strpos($output, fullname($student))); //students full name doesn't appear.
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user