ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 20 of file LSSettingsTest.php.

21 {
22 $object = new ilLearningSequenceSettings(
23 self::TO_OBJ_ID,
24 self::TO_ABSTRACT,
25 self::TO_EXTRO,
26 self::TO_ABSTRACT_IMAGE,
27 self::TO_EXTRO_IMAGE,
28 self::TO_ONLINE,
29 self::TO_MEMBERS_GALLERY
30 );
31
32 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
33 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
34 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
35 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
36 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
37 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
38
39 return $object;
40 }
Settings for an LSO (like abstract, extro)

◆ testWithAbstract()

LSSettingsTest::testWithAbstract ( ilLearningSequenceSettings  $object)

@depends testCreate

Definition at line 45 of file LSSettingsTest.php.

46 {
47 $new_object = $object->withAbstract("teststring");
48
49 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
50 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
51 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
52 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
53 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
54 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
55
56 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
57 $this->assertEquals($new_object->getAbstract(), "teststring");
58 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
59 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
60 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
61 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
62 }

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 89 of file LSSettingsTest.php.

90 {
91 $new_object = $object->withAbstractImage("teststring");
92
93 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
94 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
95 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
96 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
97 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
98 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
99
100 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
101 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
102 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
103 $this->assertEquals($new_object->getAbstractImage(), "teststring");
104 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
105 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
106 }

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 67 of file LSSettingsTest.php.

68 {
69 $new_object = $object->withExtro("teststring");
70
71 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
72 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
73 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
74 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
75 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
76 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
77
78 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
79 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
80 $this->assertEquals($new_object->getExtro(), "teststring");
81 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
82 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
83 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
84 }

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 111 of file LSSettingsTest.php.

112 {
113 $new_object = $object->withExtroImage("teststring");
114
115 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
116 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
117 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
118 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
119 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
120 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
121
122 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
123 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
124 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
125 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
126 $this->assertEquals($new_object->getExtroImage(), "teststring");
127 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
128 }

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 133 of file LSSettingsTest.php.

134 {
135 $new_object = $object->withMembersGallery(false);
136
137 $this->assertEquals($object->getObjId(), self::TO_OBJ_ID);
138 $this->assertEquals($object->getAbstract(), self::TO_ABSTRACT);
139 $this->assertEquals($object->getExtro(), self::TO_EXTRO);
140 $this->assertEquals($object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
141 $this->assertEquals($object->getExtroImage(), self::TO_EXTRO_IMAGE);
142 $this->assertEquals($object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
143
144 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
145 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
146 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
147 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
148 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
149 $this->assertEquals($new_object->getMembersGallery(), false);
150 }

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 13 of file LSSettingsTest.php.

◆ TO_ABSTRACT_IMAGE

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

Definition at line 15 of file LSSettingsTest.php.

◆ TO_EXTRO

const LSSettingsTest::TO_EXTRO = "extro"

Definition at line 14 of file LSSettingsTest.php.

◆ TO_EXTRO_IMAGE

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

Definition at line 16 of file LSSettingsTest.php.

◆ TO_MEMBERS_GALLERY

const LSSettingsTest::TO_MEMBERS_GALLERY = true

Definition at line 18 of file LSSettingsTest.php.

◆ TO_OBJ_ID

const LSSettingsTest::TO_OBJ_ID = 10

Definition at line 12 of file LSSettingsTest.php.

◆ TO_ONLINE

const LSSettingsTest::TO_ONLINE = true

Definition at line 17 of file LSSettingsTest.php.


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