ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilStudyProgrammeTypeTranslationTest Class Reference
+ 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

Definition at line 3 of file ilStudyProgrammeTypeTranslationTest.php.

Member Function Documentation

◆ test_init_and_id()

ilStudyProgrammeTypeTranslationTest::test_init_and_id ( )

Definition at line 7 of file ilStudyProgrammeTypeTranslationTest.php.

8  {
9  $tt = new ilStudyProgrammeTypeTranslation(123);
10  $this->assertEquals($tt->getId(), 123);
11  return $tt;
12  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_lang()

ilStudyProgrammeTypeTranslationTest::test_lang (   $tt)

test_init_and_id

Definition at line 28 of file ilStudyProgrammeTypeTranslationTest.php.

29  {
30  $this->assertEquals('', $tt->getLang());
31  $tt->setLang('de');
32  $this->assertEquals('de', $tt->getLang());
33  }

◆ test_member()

ilStudyProgrammeTypeTranslationTest::test_member (   $tt)

test_init_and_id

Definition at line 38 of file ilStudyProgrammeTypeTranslationTest.php.

39  {
40  $this->assertEquals('', $tt->getMember());
41  $tt->setMember('a_member');
42  $this->assertEquals('a_member', $tt->getMember());
43  }

◆ test_prg_type_id()

ilStudyProgrammeTypeTranslationTest::test_prg_type_id (   $tt)

test_init_and_id

Definition at line 17 of file ilStudyProgrammeTypeTranslationTest.php.

18  {
19  $this->assertEquals(0, $tt->getPrgTypeId());
20  $tt->setPrgTypeId(123);
21  $this->assertEquals(123, $tt->getPrgTypeId());
22  }

◆ test_value()

ilStudyProgrammeTypeTranslationTest::test_value (   $tt)

test_init_and_id

Definition at line 48 of file ilStudyProgrammeTypeTranslationTest.php.

49  {
50  $this->assertEquals('', $tt->getValue());
51  $tt->setValue('a_value');
52  $this->assertEquals('a_value', $tt->getValue());
53  }

Field Documentation

◆ $backupGlobals

ilStudyProgrammeTypeTranslationTest::$backupGlobals = false
protected

Definition at line 5 of file ilStudyProgrammeTypeTranslationTest.php.


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