ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
GuidedTourSettingsTest.php
Go to the documentation of this file.
1<?php
2
19use PHPUnit\Framework\TestCase;
22
23class GuidedTourSettingsTest extends TestCase
24{
25 protected function tearDown(): void
26 {
27 }
28
29 public function testSettings(): void
30 {
32 $settings = $data->settings(
33 14,
34 true,
35 "screen_ids",
36 PermissionType::Read,
37 "en"
38 );
39
40 $this->assertEquals(
41 14,
42 $settings->getObjId()
43 );
44
45 $this->assertEquals(
46 true,
47 $settings->isActive()
48 );
49
50 $this->assertEquals(
51 "screen_ids",
52 $settings->getScreenIds()
53 );
54
55 $this->assertEquals(
56 PermissionType::Read,
57 $settings->getPermission()
58 );
59
60 $this->assertEquals(
61 "en",
62 $settings->getLanguage()
63 );
64 }
65}