◆ fileNamesDataProvider()
ilIndividualAssessmentMemberTest::fileNamesDataProvider |
( |
| ) |
|
◆ negativeLPStatusDataProvider()
ilIndividualAssessmentMemberTest::negativeLPStatusDataProvider |
( |
| ) |
|
◆ positiveLPStatusDataProvider()
ilIndividualAssessmentMemberTest::positiveLPStatusDataProvider |
( |
| ) |
|
◆ setUp()
ilIndividualAssessmentMemberTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 39 of file ilIndividualAssessmentMemberTest.php.
41 $this->iass_object = $this->createMock(ilObjIndividualAssessment::class);
42 $this->grading = $this->createMock(ilIndividualAssessmentUserGrading::class);
43 $this->obj_user = $this->createMock(ilObjUser::class);
◆ test_assessment()
ilIndividualAssessmentMemberTest::test_assessment |
( |
| ) |
|
Definition at line 273 of file ilIndividualAssessmentMemberTest.php.
282 $this->assertEquals($this->iass_object, $obj->assessment());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_assessmentId()
ilIndividualAssessmentMemberTest::test_assessmentId |
( |
| ) |
|
Definition at line 255 of file ilIndividualAssessmentMemberTest.php.
258 ->expects($this->once())
270 $this->assertEquals(22, $obj->assessmentId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_changerId()
ilIndividualAssessmentMemberTest::test_changerId |
( |
| ) |
|
Definition at line 131 of file ilIndividualAssessmentMemberTest.php.
142 $this->assertEquals(5656, $obj->changerId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_changerId_not_set()
ilIndividualAssessmentMemberTest::test_changerId_not_set |
( |
| ) |
|
Definition at line 119 of file ilIndividualAssessmentMemberTest.php.
128 $this->assertNull($obj->changerId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_changeTime()
ilIndividualAssessmentMemberTest::test_changeTime |
( |
| ) |
|
Definition at line 157 of file ilIndividualAssessmentMemberTest.php.
169 $this->assertEquals(
'2021-11-25', $obj->changeTime()->format(
'Y-m-d'));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_changeTime_not_set()
ilIndividualAssessmentMemberTest::test_changeTime_not_set |
( |
| ) |
|
Definition at line 145 of file ilIndividualAssessmentMemberTest.php.
154 $this->assertNull($obj->changeTime());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_createObject()
ilIndividualAssessmentMemberTest::test_createObject |
( |
| ) |
|
Definition at line 46 of file ilIndividualAssessmentMemberTest.php.
55 $this->assertInstanceOf(ilIndividualAssessmentMember::class, $obj);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_eventTime()
ilIndividualAssessmentMemberTest::test_eventTime |
( |
| ) |
|
Definition at line 635 of file ilIndividualAssessmentMemberTest.php.
638 ->expects($this->once())
639 ->method(
"getEventTime")
650 $this->assertEquals(
"2021-11-25", $obj->eventTime()->format(
"Y-m-d"));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_examinerId()
ilIndividualAssessmentMemberTest::test_examinerId |
( |
| ) |
|
Definition at line 106 of file ilIndividualAssessmentMemberTest.php.
116 $this->assertEquals(3434, $obj->examinerId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_examinerId_not_set()
ilIndividualAssessmentMemberTest::test_examinerId_not_set |
( |
| ) |
|
Definition at line 94 of file ilIndividualAssessmentMemberTest.php.
103 $this->assertNull($obj->examinerId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_fileName()
ilIndividualAssessmentMemberTest::test_fileName |
( |
| ) |
|
Definition at line 653 of file ilIndividualAssessmentMemberTest.php.
656 ->expects($this->once())
658 ->willReturn(
"file_name")
668 $this->assertEquals(
"file_name", $obj->fileName());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_finalized()
ilIndividualAssessmentMemberTest::test_finalized |
( |
| ) |
|
Definition at line 285 of file ilIndividualAssessmentMemberTest.php.
288 ->expects($this->once())
289 ->method(
"isFinalized")
300 $this->assertTrue($obj->finalized());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_firstname()
ilIndividualAssessmentMemberTest::test_firstname |
( |
| ) |
|
Definition at line 533 of file ilIndividualAssessmentMemberTest.php.
536 ->expects($this->once())
537 ->method(
"getFirstname")
538 ->willReturn(
"firstname")
548 $this->assertEquals(
"firstname", $obj->firstname());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_getGrading()
ilIndividualAssessmentMemberTest::test_getGrading |
( |
| ) |
|
Definition at line 689 of file ilIndividualAssessmentMemberTest.php.
698 $this->assertEquals($this->grading, $obj->getGrading());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_getRecord()
ilIndividualAssessmentMemberTest::test_getRecord |
( |
| ) |
|
Definition at line 58 of file ilIndividualAssessmentMemberTest.php.
61 ->expects($this->once())
63 ->willReturn(
"testRecord")
73 $this->assertEquals(
"testRecord", $obj->record());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_id()
ilIndividualAssessmentMemberTest::test_id |
( |
| ) |
|
Definition at line 237 of file ilIndividualAssessmentMemberTest.php.
240 ->expects($this->once())
252 $this->assertEquals(22, $obj->id());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_internalNote()
ilIndividualAssessmentMemberTest::test_internalNote |
( |
| ) |
|
Definition at line 76 of file ilIndividualAssessmentMemberTest.php.
79 ->expects($this->once())
80 ->method(
"getInternalNote")
81 ->willReturn(
"internalNote")
91 $this->assertEquals(
"internalNote", $obj->internalNote());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_lastname()
ilIndividualAssessmentMemberTest::test_lastname |
( |
| ) |
|
Definition at line 515 of file ilIndividualAssessmentMemberTest.php.
518 ->expects($this->once())
519 ->method(
"getLastname")
520 ->willReturn(
"lastname")
530 $this->assertEquals(
"lastname", $obj->lastname());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_login()
ilIndividualAssessmentMemberTest::test_login |
( |
| ) |
|
Definition at line 551 of file ilIndividualAssessmentMemberTest.php.
554 ->expects($this->once())
556 ->willReturn(
"login")
566 $this->assertEquals(
"login", $obj->login());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_LPStatus()
ilIndividualAssessmentMemberTest::test_LPStatus |
( |
| ) |
|
◆ test_mayBeFinalized_already_finalized()
ilIndividualAssessmentMemberTest::test_mayBeFinalized_already_finalized |
( |
| ) |
|
Definition at line 392 of file ilIndividualAssessmentMemberTest.php.
References ILIAS\LTI\ToolProvider\$settings, and ilIndividualAssessmentMembers\LP_COMPLETED.
394 $settings = $this->createMock(ilIndividualAssessmentSettings::class);
396 ->expects($this->once())
397 ->method(
"isFileRequired")
402 ->expects($this->once())
403 ->method(
"getSettings")
408 ->expects($this->once())
409 ->method(
"getLearningProgress")
413 ->expects($this->once())
414 ->method(
"isFinalized")
425 $this->assertFalse($obj->mayBeFinalized());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_mayBeFinalized_file_required_filename_empty()
ilIndividualAssessmentMemberTest::test_mayBeFinalized_file_required_filename_empty |
( |
?string |
$filename | ) |
|
fileNamesDataProvider
Definition at line 314 of file ilIndividualAssessmentMemberTest.php.
References ILIAS\LTI\ToolProvider\$settings.
316 $settings = $this->createMock(ilIndividualAssessmentSettings::class);
318 ->expects($this->once())
319 ->method(
"isFileRequired")
324 ->expects($this->once())
325 ->method(
"getSettings")
330 ->expects($this->once())
342 $this->assertFalse($obj->mayBeFinalized());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_mayBeFinalized_with_negative_lp_status()
ilIndividualAssessmentMemberTest::test_mayBeFinalized_with_negative_lp_status |
( |
int |
$lp_status | ) |
|
negativeLPStatusDataProvider
Definition at line 439 of file ilIndividualAssessmentMemberTest.php.
References ILIAS\LTI\ToolProvider\$settings.
441 $settings = $this->createMock(ilIndividualAssessmentSettings::class);
443 ->expects($this->once())
444 ->method(
"isFileRequired")
449 ->expects($this->once())
450 ->method(
"getSettings")
455 ->expects($this->once())
456 ->method(
"getLearningProgress")
457 ->willReturn($lp_status)
467 $this->assertFalse($obj->mayBeFinalized());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_mayBeFinalized_with_positive_lp_status()
ilIndividualAssessmentMemberTest::test_mayBeFinalized_with_positive_lp_status |
( |
int |
$lp_status | ) |
|
positiveLPStatusDataProvider
Definition at line 356 of file ilIndividualAssessmentMemberTest.php.
References ILIAS\LTI\ToolProvider\$settings.
358 $settings = $this->createMock(ilIndividualAssessmentSettings::class);
360 ->expects($this->once())
361 ->method(
"isFileRequired")
366 ->expects($this->once())
367 ->method(
"getSettings")
372 ->expects($this->once())
373 ->method(
"getLearningProgress")
374 ->willReturn($lp_status)
377 ->expects($this->once())
378 ->method(
"isFinalized")
389 $this->assertTrue($obj->mayBeFinalized());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_maybeSendNotification_not_finalized()
ilIndividualAssessmentMemberTest::test_maybeSendNotification_not_finalized |
( |
| ) |
|
Definition at line 190 of file ilIndividualAssessmentMemberTest.php.
192 $notificator = $this->createMock(ilIndividualAssessmentNotificator::class);
195 ->expects($this->once())
196 ->method(
"isFinalized")
207 $this->expectException(ilIndividualAssessmentException::class);
208 $this->expectExceptionMessage(
'must finalize before notification');
209 $obj->maybeSendNotification($notificator);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_maybeSendNotification_not_notify()
ilIndividualAssessmentMemberTest::test_maybeSendNotification_not_notify |
( |
| ) |
|
Definition at line 212 of file ilIndividualAssessmentMemberTest.php.
214 $notificator = $this->createMock(ilIndividualAssessmentNotificator::class);
217 ->expects($this->once())
218 ->method(
"isFinalized")
222 ->expects($this->once())
234 $this->assertEquals($obj, $obj->maybeSendNotification($notificator));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_name()
ilIndividualAssessmentMemberTest::test_name |
( |
| ) |
|
Definition at line 569 of file ilIndividualAssessmentMemberTest.php.
572 ->expects($this->once())
573 ->method(
"getFullName")
574 ->willReturn(
"first last")
584 $this->assertEquals(
"first last", $obj->name());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_notificationTS()
ilIndividualAssessmentMemberTest::test_notificationTS |
( |
| ) |
|
Definition at line 605 of file ilIndividualAssessmentMemberTest.php.
614 $this->assertEquals(22222, $obj->notificationTS());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_notify()
ilIndividualAssessmentMemberTest::test_notify |
( |
| ) |
|
Definition at line 172 of file ilIndividualAssessmentMemberTest.php.
175 ->expects($this->once())
187 $this->assertTrue($obj->notify());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_place()
ilIndividualAssessmentMemberTest::test_place |
( |
| ) |
|
Definition at line 617 of file ilIndividualAssessmentMemberTest.php.
620 ->expects($this->once())
622 ->willReturn(
"place")
632 $this->assertEquals(
"place", $obj->place());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_viewFile()
ilIndividualAssessmentMemberTest::test_viewFile |
( |
| ) |
|
Definition at line 671 of file ilIndividualAssessmentMemberTest.php.
674 ->expects($this->once())
675 ->method(
"isFileVisible")
686 $this->assertTrue($obj->viewFile());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_withChangerId()
ilIndividualAssessmentMemberTest::test_withChangerId |
( |
| ) |
|
Definition at line 485 of file ilIndividualAssessmentMemberTest.php.
494 $new_obj = $obj->withChangerId(534);
496 $this->assertNull($obj->changerId());
497 $this->assertEquals(534, $new_obj->changerId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_withChangeTime()
ilIndividualAssessmentMemberTest::test_withChangeTime |
( |
| ) |
|
Definition at line 500 of file ilIndividualAssessmentMemberTest.php.
511 $this->assertNull($obj->changeTime());
512 $this->assertEquals(
"2021-11-25", $new_obj->changeTime()->format(
"Y-m-d"));
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_withExaminerId()
ilIndividualAssessmentMemberTest::test_withExaminerId |
( |
| ) |
|
Definition at line 470 of file ilIndividualAssessmentMemberTest.php.
479 $new_obj = $obj->withExaminerId(333);
481 $this->assertNull($obj->examinerId());
482 $this->assertEquals(333, $new_obj->examinerId());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_withGrading()
ilIndividualAssessmentMemberTest::test_withGrading |
( |
| ) |
|
Definition at line 701 of file ilIndividualAssessmentMemberTest.php.
710 $new_grading = $this->createMock(ilIndividualAssessmentUserGrading::class);
711 $new_grading = $new_grading->withFinalized(
true);
712 $new_obj = $obj->withGrading($new_grading);
714 $this->assertNotEquals($new_grading, $obj->getGrading());
715 $this->assertEquals($new_grading, $new_obj->getGrading());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $grading
ilIndividualAssessmentMemberTest::$grading |
|
private |
◆ $iass_object
ilIndividualAssessmentMemberTest::$iass_object |
|
private |
◆ $obj_user
ilIndividualAssessmentMemberTest::$obj_user |
|
private |
The documentation for this class was generated from the following file: