ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
ilStudyProgrammeAdvancedMetadataRecordTest.php
Go to the documentation of this file.
1<?php
2
6class ilStudyProgrammeAdvancedMetadataRecordTest extends \PHPUnit\Framework\TestCase
7{
8 protected $backupGlobals = false;
9
10 public function test_init_and_id()
11 {
13 $this->assertEquals($amd->getId(), 123);
14 return $amd;
15 }
16
20 public function test_type_id($amd)
21 {
22 $this->assertEquals(0, $amd->getTypeId());
23 $amd->setTypeId(123);
24 $this->assertEquals(123, $amd->getTypeId());
25 }
26
30 public function test_rec_id($amd)
31 {
32 $this->assertEquals(0, $amd->getRecId());
33 $amd->setRecId(321);
34 $this->assertEquals(321, $amd->getRecId());
35 }
36}
An exception for terminatinating execution or to throw for unit testing.