MDL-52270 mod_assign: Adapt unit tests
This commit is contained in:
committed by
David Monllao
parent
18b797347f
commit
59e9548762
@@ -273,7 +273,7 @@ class assign_grading_table extends table_sql implements renderable {
|
||||
$columns[] = 'fullname';
|
||||
$headers[] = get_string('fullname');
|
||||
|
||||
// MDL-52269 - Participant # details if can view real identities.
|
||||
// Participant # details if can view real identities.
|
||||
if ($this->assignment->is_blind_marking()) {
|
||||
if (!$this->is_downloading()) {
|
||||
$columns[] = 'recordid';
|
||||
|
||||
@@ -2278,8 +2278,8 @@ 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(false, strpos($output, get_string('hiddenuser', 'assign')));
|
||||
$this->assertEquals(true, strpos($output, fullname($student))); //students full name doesn't appear.
|
||||
$this->assertEquals(true, strpos($output, get_string('hiddenuser', 'assign')));
|
||||
$this->assertEquals(true, strpos($output, fullname($student)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user