19 declare(strict_types=1);
32 $name =
'Hans Günther';
33 $record =
'The guy was really good';
34 $internal_note =
'This is a node just for me.';
36 $is_file_visible =
false;
55 $this->assertInstanceOf(ilIndividualAssessmentUserGrading::class, $grading);
56 $this->assertEquals($name, $grading->getName());
57 $this->assertEquals($record, $grading->getRecord());
58 $this->assertEquals($internal_note, $grading->getInternalNote());
59 $this->assertNull($grading->getFile());
60 $this->assertFalse($grading->isFileVisible());
62 $this->assertEquals($place, $grading->getPlace());
63 $this->assertEquals($event_time, $grading->getEventTime());
64 $this->assertTrue($grading->isNotify());
65 $this->assertFalse($grading->isFinalized());
70 $name =
'Hans Günther';
71 $record =
'The guy was really good';
72 $internal_note =
'This is a node just for me.';
74 $is_file_visible =
true;
76 $place =
'Area 51 Underground';
93 $this->assertInstanceOf(ilIndividualAssessmentUserGrading::class, $grading);
94 $this->assertEquals($name, $grading->getName());
95 $this->assertEquals($record, $grading->getRecord());
96 $this->assertEquals($internal_note, $grading->getInternalNote());
97 $this->assertEquals($file, $grading->getFile());
98 $this->assertTrue($grading->isFileVisible());
100 $this->assertEquals($place, $grading->getPlace());
101 $this->assertEquals($event_time, $grading->getEventTime());
102 $this->assertFalse($grading->isNotify());
103 $this->assertFalse($grading->isFinalized());
105 $n_grading = $grading->withFinalized(
true);
106 $this->assertEquals($name, $n_grading->getName());
107 $this->assertEquals($record, $n_grading->getRecord());
108 $this->assertEquals($internal_note, $n_grading->getInternalNote());
109 $this->assertEquals($file, $n_grading->getFile());
110 $this->assertTrue($n_grading->isFileVisible());
112 $this->assertEquals($place, $n_grading->getPlace());
113 $this->assertEquals($event_time, $n_grading->getEventTime());
114 $this->assertFalse($n_grading->isNotify());
115 $this->assertTrue($n_grading->isFinalized());
117 $this->assertNotSame($n_grading, $grading);
122 $lng = $this->createMock(ilLanguage::class);
123 $lng->expects($this->atLeastOnce())
125 ->willReturn(
"label")
127 $file_handler = $this->createMock(AbstractCtrlAwareUploadHandler::class);
138 $name =
'Hans Günther';
139 $record =
'The guy was really good';
140 $internal_note =
'This is a node just for me.';
141 $file =
'report.pdf';
142 $is_file_visible =
true;
144 $place =
'Area 51 Underground';
148 $record_template =
"Record Template";
162 $input = $grading->toFormInput(
168 $df->dateFormat()->standard(),
177 $this->assertInstanceOf(Section::class, $input);
test_with_finalized_changed()
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...