ILIAS  release_8 Revision v8.24
ilStudyProgrammeAutoMembershipsSourceTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21use PHPUnit\Framework\TestCase;
22
24{
25 protected int $prg_obj_id;
26 protected string $source_type;
27 protected int $source_id;
28 protected bool $enbl;
29 protected int $usr_id;
30 protected DateTimeImmutable $dat;
31
32 protected function setUp(): void
33 {
34 $this->prg_obj_id = 123;
36 $this->source_id = 666;
37 $this->enbl = true;
38 $this->usr_id = 6;
39 $this->dat = new DateTimeImmutable('2019-06-05 15:25:12');
40 }
41
43 {
45 $this->prg_obj_id,
46 $this->source_type,
47 $this->source_id,
48 $this->enbl,
49 $this->usr_id,
50 $this->dat
51 );
52 $this->assertInstanceOf(
53 ilStudyProgrammeAutoMembershipSource::class,
54 $ams
55 );
56 return $ams;
57 }
58
63 {
64 $this->assertEquals(
65 $this->prg_obj_id,
66 $ams->getPrgObjId()
67 );
68 }
69
74 {
75 $this->assertEquals(
76 $this->source_type,
77 $ams->getSourceType()
78 );
79 }
84 {
85 $this->assertEquals(
86 $this->source_id,
87 $ams->getSourceId()
88 );
89 }
90
95 {
96 $this->assertEquals(
97 $this->usr_id,
98 $ams->getLastEditorId()
99 );
100 }
101
106 {
107 $this->assertEquals(
108 $this->dat,
109 $ams->getLastEdited()
110 );
111 }
112}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGetPrgObjId(ilStudyProgrammeAutoMembershipSource $ams)
@depends testConstruction
testGetSourceId(ilStudyProgrammeAutoMembershipSource $ams)
@depends testConstruction
testGetSourceType(ilStudyProgrammeAutoMembershipSource $ams)
@depends testConstruction
testGetLastEdited(ilStudyProgrammeAutoMembershipSource $ams)
@depends testConstruction
testGetLastEditorId(ilStudyProgrammeAutoMembershipSource $ams)
@depends testConstruction