ILIAS  release_8 Revision v8.24
LSSettingsTest Class Reference
+ Inheritance diagram for LSSettingsTest:
+ Collaboration diagram for LSSettingsTest:

Public Member Functions

 testCreate ()
 
 testWithAbstract (ilLearningSequenceSettings $object)
 @depends testCreate More...
 
 testWithExtro (ilLearningSequenceSettings $object)
 @depends testCreate More...
 
 testWithAbstractImage (ilLearningSequenceSettings $object)
 @depends testCreate More...
 
 testWithExtroImage (ilLearningSequenceSettings $object)
 @depends testCreate More...
 
 testWithMembersGallery (ilLearningSequenceSettings $object)
 @depends testCreate More...
 

Data Fields

const TO_OBJ_ID = 10
 
const TO_ABSTRACT = "abstract"
 
const TO_EXTRO = "extro"
 
const TO_ABSTRACT_IMAGE = "abstract/image/path"
 
const TO_EXTRO_IMAGE = "extro/image/path"
 
const TO_ONLINE = true
 
const TO_MEMBERS_GALLERY = true
 

Detailed Description

Member Function Documentation

◆ testCreate()

LSSettingsTest::testCreate ( )

Definition at line 36 of file LSSettingsTest.php.

37 {
38 $object = new ilLearningSequenceSettings(
39 self::TO_OBJ_ID,
40 self::TO_ABSTRACT,
41 self::TO_EXTRO,
42 self::TO_ABSTRACT_IMAGE,
43 self::TO_EXTRO_IMAGE,
44 self::TO_ONLINE,
45 self::TO_MEMBERS_GALLERY
46 );
47
48 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
49 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
50 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
51 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
52 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
53 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
54
55 return $object;
56 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ testWithAbstract()

LSSettingsTest::testWithAbstract ( ilLearningSequenceSettings  $object)

@depends testCreate

Definition at line 61 of file LSSettingsTest.php.

62 {
63 $new_object = $object->withAbstract("teststring");
64
65 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
66 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
67 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
68 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
69 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
70 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
71
72 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
73 $this->assertEquals($new_object->getAbstract(), "teststring");
74 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
75 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
76 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
77 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
78 }

References ilLearningSequenceSettings\getAbstract(), ilLearningSequenceSettings\getAbstractImage(), ilLearningSequenceSettings\getExtro(), ilLearningSequenceSettings\getExtroImage(), ilLearningSequenceSettings\getMembersGallery(), ilLearningSequenceSettings\getObjId(), and ilLearningSequenceSettings\withAbstract().

+ Here is the call graph for this function:

◆ testWithAbstractImage()

LSSettingsTest::testWithAbstractImage ( ilLearningSequenceSettings  $object)

@depends testCreate

Definition at line 105 of file LSSettingsTest.php.

106 {
107 $new_object = $object->withAbstractImage("teststring");
108
109 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
110 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
111 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
112 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
113 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
114 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
115
116 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
117 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
118 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
119 $this->assertEquals($new_object->getAbstractImage(), "teststring");
120 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
121 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
122 }

References ilLearningSequenceSettings\getAbstract(), ilLearningSequenceSettings\getAbstractImage(), ilLearningSequenceSettings\getExtro(), ilLearningSequenceSettings\getExtroImage(), ilLearningSequenceSettings\getMembersGallery(), ilLearningSequenceSettings\getObjId(), and ilLearningSequenceSettings\withAbstractImage().

+ Here is the call graph for this function:

◆ testWithExtro()

LSSettingsTest::testWithExtro ( ilLearningSequenceSettings  $object)

@depends testCreate

Definition at line 83 of file LSSettingsTest.php.

84 {
85 $new_object = $object->withExtro("teststring");
86
87 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
88 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
89 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
90 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
91 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
92 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
93
94 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
95 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
96 $this->assertEquals($new_object->getExtro(), "teststring");
97 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
98 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
99 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
100 }

References ilLearningSequenceSettings\getAbstract(), ilLearningSequenceSettings\getAbstractImage(), ilLearningSequenceSettings\getExtro(), ilLearningSequenceSettings\getExtroImage(), ilLearningSequenceSettings\getMembersGallery(), ilLearningSequenceSettings\getObjId(), and ilLearningSequenceSettings\withExtro().

+ Here is the call graph for this function:

◆ testWithExtroImage()

LSSettingsTest::testWithExtroImage ( ilLearningSequenceSettings  $object)

@depends testCreate

Definition at line 127 of file LSSettingsTest.php.

128 {
129 $new_object = $object->withExtroImage("teststring");
130
131 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
132 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
133 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
134 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
135 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
136 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
137
138 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
139 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
140 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
141 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
142 $this->assertEquals($new_object->getExtroImage(), "teststring");
143 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
144 }

References ilLearningSequenceSettings\getAbstract(), ilLearningSequenceSettings\getAbstractImage(), ilLearningSequenceSettings\getExtro(), ilLearningSequenceSettings\getExtroImage(), ilLearningSequenceSettings\getMembersGallery(), ilLearningSequenceSettings\getObjId(), and ilLearningSequenceSettings\withExtroImage().

+ Here is the call graph for this function:

◆ testWithMembersGallery()

LSSettingsTest::testWithMembersGallery ( ilLearningSequenceSettings  $object)

@depends testCreate

Definition at line 149 of file LSSettingsTest.php.

150 {
151 $new_object = $object->withMembersGallery(false);
152
153 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
154 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
155 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
156 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
157 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
158 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
159
160 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
161 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
162 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
163 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
164 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
165 $this->assertEquals($new_object->getMembersGallery(), false);
166 }

References ilLearningSequenceSettings\getAbstract(), ilLearningSequenceSettings\getAbstractImage(), ilLearningSequenceSettings\getExtro(), ilLearningSequenceSettings\getExtroImage(), ilLearningSequenceSettings\getMembersGallery(), ilLearningSequenceSettings\getObjId(), and ilLearningSequenceSettings\withMembersGallery().

+ Here is the call graph for this function:

Field Documentation

◆ TO_ABSTRACT

const LSSettingsTest::TO_ABSTRACT = "abstract"

Definition at line 29 of file LSSettingsTest.php.

◆ TO_ABSTRACT_IMAGE

const LSSettingsTest::TO_ABSTRACT_IMAGE = "abstract/image/path"

Definition at line 31 of file LSSettingsTest.php.

◆ TO_EXTRO

const LSSettingsTest::TO_EXTRO = "extro"

Definition at line 30 of file LSSettingsTest.php.

◆ TO_EXTRO_IMAGE

const LSSettingsTest::TO_EXTRO_IMAGE = "extro/image/path"

Definition at line 32 of file LSSettingsTest.php.

◆ TO_MEMBERS_GALLERY

const LSSettingsTest::TO_MEMBERS_GALLERY = true

Definition at line 34 of file LSSettingsTest.php.

◆ TO_OBJ_ID

const LSSettingsTest::TO_OBJ_ID = 10

Definition at line 28 of file LSSettingsTest.php.

◆ TO_ONLINE

const LSSettingsTest::TO_ONLINE = true

Definition at line 33 of file LSSettingsTest.php.


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