3declare(strict_types=1);
 
   21require_once(__DIR__ . 
"/../../../../../libs/composer/vendor/autoload.php");
 
   30        $this->assertEquals($ass->getId(), 123);
 
   31        $this->assertEquals($ass->getUserId(), 6);
 
   37        $now = 
new DateTimeImmutable();
 
   39        $ass = $ass->withLastChange(6, $now);
 
   40        $this->assertEquals($ass->getLastChangeBy(), 6);
 
   43        $this->assertFalse($ass->withManuallyAssigned(
false)->isManuallyAssigned());
 
   44        $this->assertTrue($ass->withManuallyAssigned(
true)->isManuallyAssigned());
 
   46        $dl = DateTimeImmutable::createFromFormat(
'Ymd', 
'20201001');
 
   47        $ass = $ass->withRestarted(321, $dl);
 
   48        $this->assertEquals($ass->getRestartDate()->format(
'Ymd'), 
'20201001');
 
   49        $this->assertEquals($ass->getRestartedAssignmentId(), 321);
 
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PR...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
testPRGAssignmentInitAndId()
 
testPRGAssignmentProperties()