ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ilStudyProgrammeTypeTranslationTest Class Reference

needsInstalledILIAS 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

needsInstalledILIAS

Definition at line 6 of file ilStudyProgrammeTypeTranslationTest.php.

Member Function Documentation

◆ test_init_and_id()

ilStudyProgrammeTypeTranslationTest::test_init_and_id ( )

Definition at line 10 of file ilStudyProgrammeTypeTranslationTest.php.

11  {
12  $tt = new ilStudyProgrammeTypeTranslation(123);
13  $this->assertEquals($tt->getId(), 123);
14  return $tt;
15  }
Class ilStudyProgrammeTypeTranslation This class represents a translation for a given ilStudyProgramm...

◆ test_lang()

ilStudyProgrammeTypeTranslationTest::test_lang (   $tt)

test_init_and_id

Definition at line 31 of file ilStudyProgrammeTypeTranslationTest.php.

32  {
33  $this->assertEquals('', $tt->getLang());
34  $tt->setLang('de');
35  $this->assertEquals('de', $tt->getLang());
36  }

◆ test_member()

ilStudyProgrammeTypeTranslationTest::test_member (   $tt)

test_init_and_id

Definition at line 41 of file ilStudyProgrammeTypeTranslationTest.php.

42  {
43  $this->assertEquals('', $tt->getMember());
44  $tt->setMember('a_member');
45  $this->assertEquals('a_member', $tt->getMember());
46  }

◆ test_prg_type_id()

ilStudyProgrammeTypeTranslationTest::test_prg_type_id (   $tt)

test_init_and_id

Definition at line 20 of file ilStudyProgrammeTypeTranslationTest.php.

21  {
22  $this->assertEquals(0, $tt->getPrgTypeId());
23  $tt->setPrgTypeId(123);
24  $this->assertEquals(123, $tt->getPrgTypeId());
25  }

◆ test_value()

ilStudyProgrammeTypeTranslationTest::test_value (   $tt)

test_init_and_id

Definition at line 51 of file ilStudyProgrammeTypeTranslationTest.php.

52  {
53  $this->assertEquals('', $tt->getValue());
54  $tt->setValue('a_value');
55  $this->assertEquals('a_value', $tt->getValue());
56  }

Field Documentation

◆ $backupGlobals

ilStudyProgrammeTypeTranslationTest::$backupGlobals = false
protected

Definition at line 8 of file ilStudyProgrammeTypeTranslationTest.php.


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