ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilStudyProgrammeTypeTranslationTest.php
Go to the documentation of this file.
1 <?php
2 
19 class ilStudyProgrammeTypeTranslationTest extends \PHPUnit\Framework\TestCase
20 {
21  protected $backupGlobals = false;
22 
23  public function test_init_and_id()
24  {
25  $tt = new ilStudyProgrammeTypeTranslation(123);
26  $this->assertEquals($tt->getId(), 123);
27  return $tt;
28  }
29 
33  public function test_prg_type_id($tt)
34  {
35  $this->assertEquals(0, $tt->getPrgTypeId());
36  $tt->setPrgTypeId(123);
37  $this->assertEquals(123, $tt->getPrgTypeId());
38  }
39 
40 
44  public function test_lang($tt)
45  {
46  $this->assertEquals('', $tt->getLang());
47  $tt->setLang('de');
48  $this->assertEquals('de', $tt->getLang());
49  }
50 
54  public function test_member($tt)
55  {
56  $this->assertEquals('', $tt->getMember());
57  $tt->setMember('a_member');
58  $this->assertEquals('a_member', $tt->getMember());
59  }
60 
64  public function test_value($tt)
65  {
66  $this->assertEquals('', $tt->getValue());
67  $tt->setValue('a_value');
68  $this->assertEquals('a_value', $tt->getValue());
69  }
70 }
Class ilStudyProgrammeTypeTranslation This class represents a translation for a given ilStudyProgramm...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...