ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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_init_and_id More...
 
 test_lang ($tt)
 test_init_and_id More...
 
 test_member ($tt)
 test_init_and_id More...
 
 test_value ($tt)
 test_init_and_id More...
 

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  {
25  $tt = new ilStudyProgrammeTypeTranslation(123);
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)

test_init_and_id

Definition at line 44 of file ilStudyProgrammeTypeTranslationTest.php.

45  {
46  $this->assertEquals('', $tt->getLang());
47  $tt->setLang('de');
48  $this->assertEquals('de', $tt->getLang());
49  }

◆ test_member()

ilStudyProgrammeTypeTranslationTest::test_member (   $tt)

test_init_and_id

Definition at line 54 of file ilStudyProgrammeTypeTranslationTest.php.

55  {
56  $this->assertEquals('', $tt->getMember());
57  $tt->setMember('a_member');
58  $this->assertEquals('a_member', $tt->getMember());
59  }

◆ test_prg_type_id()

ilStudyProgrammeTypeTranslationTest::test_prg_type_id (   $tt)

test_init_and_id

Definition at line 33 of file ilStudyProgrammeTypeTranslationTest.php.

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

◆ test_value()

ilStudyProgrammeTypeTranslationTest::test_value (   $tt)

test_init_and_id

Definition at line 64 of file ilStudyProgrammeTypeTranslationTest.php.

65  {
66  $this->assertEquals('', $tt->getValue());
67  $tt->setValue('a_value');
68  $this->assertEquals('a_value', $tt->getValue());
69  }

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: