20 declare(strict_types=1);
33 $name =
'Hans Günther';
34 $record =
'The guy was really good';
35 $internal_note =
'This is a node just for me.';
37 $is_file_visible =
false;
56 $this->assertInstanceOf(ilIndividualAssessmentUserGrading::class, $grading);
57 $this->assertEquals($name, $grading->getName());
58 $this->assertEquals($record, $grading->getRecord());
59 $this->assertEquals($internal_note, $grading->getInternalNote());
60 $this->assertNull($grading->getFile());
61 $this->assertFalse($grading->isFileVisible());
63 $this->assertEquals($place, $grading->getPlace());
64 $this->assertEquals($event_time, $grading->getEventTime());
65 $this->assertTrue($grading->isNotify());
66 $this->assertFalse($grading->isFinalized());
71 $name =
'Hans Günther';
72 $record =
'The guy was really good';
73 $internal_note =
'This is a node just for me.';
75 $is_file_visible =
true;
77 $place =
'Area 51 Underground';
94 $this->assertInstanceOf(ilIndividualAssessmentUserGrading::class, $grading);
95 $this->assertEquals($name, $grading->getName());
96 $this->assertEquals($record, $grading->getRecord());
97 $this->assertEquals($internal_note, $grading->getInternalNote());
98 $this->assertEquals($file, $grading->getFile());
99 $this->assertTrue($grading->isFileVisible());
101 $this->assertEquals($place, $grading->getPlace());
102 $this->assertEquals($event_time, $grading->getEventTime());
103 $this->assertFalse($grading->isNotify());
104 $this->assertFalse($grading->isFinalized());
106 $n_grading = $grading->withFinalized(
true);
107 $this->assertEquals($name, $n_grading->getName());
108 $this->assertEquals($record, $n_grading->getRecord());
109 $this->assertEquals($internal_note, $n_grading->getInternalNote());
110 $this->assertEquals($file, $n_grading->getFile());
111 $this->assertTrue($n_grading->isFileVisible());
113 $this->assertEquals($place, $n_grading->getPlace());
114 $this->assertEquals($event_time, $n_grading->getEventTime());
115 $this->assertFalse($n_grading->isNotify());
116 $this->assertTrue($n_grading->isFinalized());
118 $this->assertNotSame($n_grading, $grading);
123 $lng = $this->createMock(ilLanguage::class);
124 $lng->expects($this->atLeastOnce())
126 ->willReturn(
"label")
128 $file_handler = $this->createMock(AbstractCtrlAwareUploadHandler::class);
139 $name =
'Hans Günther';
140 $record =
'The guy was really good';
141 $internal_note =
'This is a node just for me.';
142 $file =
'report.pdf';
143 $is_file_visible =
true;
145 $place =
'Area 51 Underground';
149 $record_template =
"Record Template";
163 $input = $grading->toFormInput(
169 $df->dateFormat()->standard(),
178 $this->assertInstanceOf(Section::class, $input);
test_with_finalized_changed()
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...