ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
DashboardViewSettingsTest Class Reference

Test dashboard settings repository. More...

+ Inheritance diagram for DashboardViewSettingsTest:
+ Collaboration diagram for DashboardViewSettingsTest:

Public Member Functions

 testMembershipsEnabledPerDefault ()
 
 testDisableMemberships ()
 
 testSelectedItemsEnabledPerDefault ()
 
 testDisableSelectedItems ()
 

Protected Member Functions

 setUp ()
 
 tearDown ()
 

Protected Attributes

ilPDSelectedItemsBlockViewSettings $view_settings
 

Detailed Description

Test dashboard settings repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 26 of file DashboardViewSettingsTest.php.

Member Function Documentation

◆ setUp()

DashboardViewSettingsTest::setUp ( )
protected

Definition at line 30 of file DashboardViewSettingsTest.php.

References ilPDSelectedItemsBlockConstants\VIEW_SELECTED_ITEMS.

30  : void
31  {
32  parent::setUp();
33 
34  $user = $this->createConfiguredMock(
35  ilObjUser::class,
36  [
37  ]
38  );
39 
40  $access = $this->createConfiguredMock(
41  \ILIAS\Dashboard\Access\DashboardAccess::class,
42  [
43  ]
44  );
45 
46  $memory_settings = new \ILIAS\Administration\MemorySetting();
47  $memory_settings->clear();
48  $this->view_settings = new ilPDSelectedItemsBlockViewSettings(
49  $user,
51  $memory_settings,
52  $access
53  );
54  }
Class ChatMainBarProvider .

◆ tearDown()

DashboardViewSettingsTest::tearDown ( )
protected

Definition at line 56 of file DashboardViewSettingsTest.php.

56  : void
57  {
58  }

◆ testDisableMemberships()

DashboardViewSettingsTest::testDisableMemberships ( )

Definition at line 69 of file DashboardViewSettingsTest.php.

References ILIAS\LTI\ToolProvider\$settings, and $view_settings.

70  {
72  $settings->enableMemberships(false);
73  $this->assertEquals(
74  false,
75  $settings->enabledMemberships()
76  );
77  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
ilPDSelectedItemsBlockViewSettings $view_settings

◆ testDisableSelectedItems()

DashboardViewSettingsTest::testDisableSelectedItems ( )

Definition at line 88 of file DashboardViewSettingsTest.php.

References ILIAS\LTI\ToolProvider\$settings, and $view_settings.

89  {
91  $settings->enableSelectedItems(false);
92  $this->assertEquals(
93  false,
94  $settings->enabledSelectedItems()
95  );
96  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
ilPDSelectedItemsBlockViewSettings $view_settings

◆ testMembershipsEnabledPerDefault()

DashboardViewSettingsTest::testMembershipsEnabledPerDefault ( )

Definition at line 60 of file DashboardViewSettingsTest.php.

References ILIAS\LTI\ToolProvider\$settings, and $view_settings.

61  {
63  $this->assertEquals(
64  true,
65  $settings->enabledMemberships()
66  );
67  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
ilPDSelectedItemsBlockViewSettings $view_settings

◆ testSelectedItemsEnabledPerDefault()

DashboardViewSettingsTest::testSelectedItemsEnabledPerDefault ( )

Definition at line 79 of file DashboardViewSettingsTest.php.

References ILIAS\LTI\ToolProvider\$settings, and $view_settings.

80  {
82  $this->assertEquals(
83  true,
84  $settings->enabledSelectedItems()
85  );
86  }
array $settings
Setting values (LTI parameters, custom parameters and local parameters).
Definition: System.php:200
ilPDSelectedItemsBlockViewSettings $view_settings

Field Documentation

◆ $view_settings


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