ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilStudyProgrammeTypeTranslationTest.php
Go to the documentation of this file.
1<?php
2
19class ilStudyProgrammeTypeTranslationTest extends \PHPUnit\Framework\TestCase
20{
21 protected $backupGlobals = false;
22
23 public function test_init_and_id()
24 {
26 $this->assertEquals($tt->getId(), 123);
27 return $tt;
28 }
29
30 #[\PHPUnit\Framework\Attributes\Depends('test_init_and_id')]
31 public function test_prg_type_id($tt)
32 {
33 $this->assertEquals(0, $tt->getPrgTypeId());
34 $tt->setPrgTypeId(123);
35 $this->assertEquals(123, $tt->getPrgTypeId());
36 }
37
38
39 #[\PHPUnit\Framework\Attributes\Depends('test_init_and_id')]
40 public function test_lang($tt)
41 {
42 $this->assertEquals('', $tt->getLang());
43 $tt->setLang('de');
44 $this->assertEquals('de', $tt->getLang());
45 }
46
47 #[\PHPUnit\Framework\Attributes\Depends('test_init_and_id')]
48 public function test_member($tt)
49 {
50 $this->assertEquals('', $tt->getMember());
51 $tt->setMember('a_member');
52 $this->assertEquals('a_member', $tt->getMember());
53 }
54
55 #[\PHPUnit\Framework\Attributes\Depends('test_init_and_id')]
56 public function test_value($tt)
57 {
58 $this->assertEquals('', $tt->getValue());
59 $tt->setValue('a_value');
60 $this->assertEquals('a_value', $tt->getValue());
61 }
62}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilStudyProgrammeTypeTranslation This class represents a translation for a given ilStudyProgramm...