ILIAS  release_8 Revision v8.24
ilStudyProgrammeAutoCategoryTest.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 int $cat_ref_id;
27 protected int $usr_id;
28 protected DateTimeImmutable $dat;
29
30 protected function setUp(): void
31 {
32 $this->prg_obj_id = 123;
33 $this->cat_ref_id = 666;
34 $this->usr_id = 6;
35 $this->dat = new DateTimeImmutable('2019-06-05 15:25:12');
36 }
37
39 {
41 $this->prg_obj_id,
42 $this->cat_ref_id,
43 $this->usr_id,
44 $this->dat
45 );
46 $this->assertInstanceOf(
47 ilStudyProgrammeAutoCategory::class,
48 $ac
49 );
50 return $ac;
51 }
52
57 {
58 $this->assertEquals(
59 $this->prg_obj_id,
60 $ac->getPrgObjId()
61 );
62 }
63
68 {
69 $this->assertEquals(
70 $this->cat_ref_id,
71 $ac->getCategoryRefId()
72 );
73 }
74
79 {
80 $this->assertEquals(
81 $this->usr_id,
82 $ac->getLastEditorId()
83 );
84 }
85
90 {
91 $this->assertEquals(
92 $this->dat,
93 $ac->getLastEdited()
94 );
95 }
96}
testGetLastEditorId(ilStudyProgrammeAutoCategory $ac)
@depends testConstruction
testGetPrgObjId(ilStudyProgrammeAutoCategory $ac)
@depends testConstruction
testGetCategoryRefId(ilStudyProgrammeAutoCategory $ac)
@depends testConstruction
testGetLastEdited(ilStudyProgrammeAutoCategory $ac)
@depends testConstruction
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...