19 declare(strict_types=1);
25 #[\PHPUnit\Framework\Attributes\BackupGlobals(false)] 30 $name =
'Hans Günther';
31 $record =
'The guy was really good';
32 $internal_note =
'This is a node just for me.';
34 $is_file_visible =
false;
53 $this->assertInstanceOf(ilIndividualAssessmentUserGrading::class, $grading);
54 $this->assertEquals($name, $grading->getName());
55 $this->assertEquals($record, $grading->getRecord());
56 $this->assertEquals($internal_note, $grading->getInternalNote());
57 $this->assertNull($grading->getFile());
58 $this->assertFalse($grading->isFileVisible());
60 $this->assertEquals($place, $grading->getPlace());
61 $this->assertEquals($event_time, $grading->getEventTime());
62 $this->assertTrue($grading->isNotify());
63 $this->assertFalse($grading->isFinalized());
68 $name =
'Hans Günther';
69 $record =
'The guy was really good';
70 $internal_note =
'This is a node just for me.';
72 $is_file_visible =
true;
74 $place =
'Area 51 Underground';
91 $this->assertInstanceOf(ilIndividualAssessmentUserGrading::class, $grading);
92 $this->assertEquals($name, $grading->getName());
93 $this->assertEquals($record, $grading->getRecord());
94 $this->assertEquals($internal_note, $grading->getInternalNote());
95 $this->assertEquals($file, $grading->getFile());
96 $this->assertTrue($grading->isFileVisible());
98 $this->assertEquals($place, $grading->getPlace());
99 $this->assertEquals($event_time, $grading->getEventTime());
100 $this->assertFalse($grading->isNotify());
101 $this->assertFalse($grading->isFinalized());
103 $n_grading = $grading->withFinalized(
true);
104 $this->assertEquals($name, $n_grading->getName());
105 $this->assertEquals($record, $n_grading->getRecord());
106 $this->assertEquals($internal_note, $n_grading->getInternalNote());
107 $this->assertEquals($file, $n_grading->getFile());
108 $this->assertTrue($n_grading->isFileVisible());
110 $this->assertEquals($place, $n_grading->getPlace());
111 $this->assertEquals($event_time, $n_grading->getEventTime());
112 $this->assertFalse($n_grading->isNotify());
113 $this->assertTrue($n_grading->isFinalized());
115 $this->assertNotSame($n_grading, $grading);
120 $lng = $this->createMock(ilLanguage::class);
121 $lng->expects($this->atLeastOnce())
123 ->willReturn(
"label")
125 $file_handler = $this->createMock(AbstractCtrlAwareUploadHandler::class);
137 $name =
'Hans Günther';
138 $record =
'The guy was really good';
139 $internal_note =
'This is a node just for me.';
140 $file =
'report.pdf';
141 $is_file_visible =
true;
143 $place =
'Area 51 Underground';
147 $record_template =
"Record Template";
161 $input = $grading->toFormInput(
167 $df->dateFormat()->standard(),
176 $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...