ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilStudyProgrammeTypeTranslationTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilStudyProgrammeTypeTranslationTest:
+ Collaboration diagram for ilStudyProgrammeTypeTranslationTest:

Public Member Functions

 test_init_and_id ()
 
 test_prg_type_id ($tt)
 
 test_lang ($tt)
 
 test_member ($tt)
 
 test_value ($tt)
 

Protected Attributes

 $backupGlobals = false
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 19 of file ilStudyProgrammeTypeTranslationTest.php.

Member Function Documentation

◆ test_init_and_id()

ilStudyProgrammeTypeTranslationTest::test_init_and_id ( )

Definition at line 23 of file ilStudyProgrammeTypeTranslationTest.php.

24 {
26 $this->assertEquals($tt->getId(), 123);
27 return $tt;
28 }
Class ilStudyProgrammeTypeTranslation This class represents a translation for a given ilStudyProgramm...

◆ test_lang()

ilStudyProgrammeTypeTranslationTest::test_lang (   $tt)

Definition at line 40 of file ilStudyProgrammeTypeTranslationTest.php.

41 {
42 $this->assertEquals('', $tt->getLang());
43 $tt->setLang('de');
44 $this->assertEquals('de', $tt->getLang());
45 }

◆ test_member()

ilStudyProgrammeTypeTranslationTest::test_member (   $tt)

Definition at line 48 of file ilStudyProgrammeTypeTranslationTest.php.

49 {
50 $this->assertEquals('', $tt->getMember());
51 $tt->setMember('a_member');
52 $this->assertEquals('a_member', $tt->getMember());
53 }

◆ test_prg_type_id()

ilStudyProgrammeTypeTranslationTest::test_prg_type_id (   $tt)

Definition at line 31 of file ilStudyProgrammeTypeTranslationTest.php.

32 {
33 $this->assertEquals(0, $tt->getPrgTypeId());
34 $tt->setPrgTypeId(123);
35 $this->assertEquals(123, $tt->getPrgTypeId());
36 }

◆ test_value()

ilStudyProgrammeTypeTranslationTest::test_value (   $tt)

Definition at line 56 of file ilStudyProgrammeTypeTranslationTest.php.

57 {
58 $this->assertEquals('', $tt->getValue());
59 $tt->setValue('a_value');
60 $this->assertEquals('a_value', $tt->getValue());
61 }

Field Documentation

◆ $backupGlobals

ilStudyProgrammeTypeTranslationTest::$backupGlobals = false
protected

Definition at line 21 of file ilStudyProgrammeTypeTranslationTest.php.


The documentation for this class was generated from the following file: