ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilLearningSequenceSettingsTest Class Reference
+ Inheritance diagram for ilLearningSequenceSettingsTest:
+ Collaboration diagram for ilLearningSequenceSettingsTest:

Public Member Functions

 testCreate ()
 
 testWithAbstract (ilLearningSequenceSettings $object)
 testCreate More...
 
 testWithExtro (ilLearningSequenceSettings $object)
 testCreate More...
 
 testWithAbstractImage (ilLearningSequenceSettings $object)
 testCreate More...
 
 testWithExtroImage (ilLearningSequenceSettings $object)
 testCreate More...
 
 testWithMembersGallery (ilLearningSequenceSettings $object)
 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

Definition at line 23 of file ilLearningSequenceSettingsTest.php.

Member Function Documentation

◆ testCreate()

ilLearningSequenceSettingsTest::testCreate ( )

Definition at line 33 of file ilLearningSequenceSettingsTest.php.

34  {
35  $object = new ilLearningSequenceSettings(
36  self::TO_OBJ_ID,
37  self::TO_ABSTRACT,
38  self::TO_EXTRO,
39  self::TO_ABSTRACT_IMAGE,
40  self::TO_EXTRO_IMAGE,
41  self::TO_MEMBERS_GALLERY
42  );
43 
44  $this->assertEquals(self::TO_OBJ_ID, $object->getObjId());
45  $this->assertEquals(self::TO_ABSTRACT, $object->getAbstract());
46  $this->assertEquals(self::TO_EXTRO, $object->getExtro());
47  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $object->getAbstractImage());
48  $this->assertEquals(self::TO_EXTRO_IMAGE, $object->getExtroImage());
49  $this->assertEquals(self::TO_MEMBERS_GALLERY, $object->getMembersGallery());
50 
51  return $object;
52  }
Settings for an LSO (like abstract, extro)

◆ testWithAbstract()

ilLearningSequenceSettingsTest::testWithAbstract ( ilLearningSequenceSettings  $object)

testCreate

Definition at line 57 of file ilLearningSequenceSettingsTest.php.

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

57  : void
58  {
59  $new_object = $object->withAbstract("teststring");
60 
61  $this->assertEquals(self::TO_OBJ_ID, $object->getObjId());
62  $this->assertEquals(self::TO_ABSTRACT, $object->getAbstract());
63  $this->assertEquals(self::TO_EXTRO, $object->getExtro());
64  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $object->getAbstractImage());
65  $this->assertEquals(self::TO_EXTRO_IMAGE, $object->getExtroImage());
66  $this->assertEquals(self::TO_MEMBERS_GALLERY, $object->getMembersGallery());
67 
68  $this->assertEquals(self::TO_OBJ_ID, $new_object->getObjId());
69  $this->assertEquals("teststring", $new_object->getAbstract());
70  $this->assertEquals(self::TO_EXTRO, $new_object->getExtro());
71  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $new_object->getAbstractImage());
72  $this->assertEquals(self::TO_EXTRO_IMAGE, $new_object->getExtroImage());
73  $this->assertEquals(self::TO_MEMBERS_GALLERY, $new_object->getMembersGallery());
74  }
+ Here is the call graph for this function:

◆ testWithAbstractImage()

ilLearningSequenceSettingsTest::testWithAbstractImage ( ilLearningSequenceSettings  $object)

testCreate

Definition at line 101 of file ilLearningSequenceSettingsTest.php.

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

101  : void
102  {
103  $new_object = $object->withAbstractImage("teststring");
104 
105  $this->assertEquals(self::TO_OBJ_ID, $object->getObjId());
106  $this->assertEquals(self::TO_ABSTRACT, $object->getAbstract());
107  $this->assertEquals(self::TO_EXTRO, $object->getExtro());
108  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $object->getAbstractImage());
109  $this->assertEquals(self::TO_EXTRO_IMAGE, $object->getExtroImage());
110  $this->assertEquals(self::TO_MEMBERS_GALLERY, $object->getMembersGallery());
111 
112  $this->assertEquals(self::TO_OBJ_ID, $new_object->getObjId());
113  $this->assertEquals(self::TO_ABSTRACT, $new_object->getAbstract());
114  $this->assertEquals(self::TO_EXTRO, $new_object->getExtro());
115  $this->assertEquals("teststring", $new_object->getAbstractImage());
116  $this->assertEquals(self::TO_EXTRO_IMAGE, $new_object->getExtroImage());
117  $this->assertEquals(self::TO_MEMBERS_GALLERY, $new_object->getMembersGallery());
118  }
+ Here is the call graph for this function:

◆ testWithExtro()

ilLearningSequenceSettingsTest::testWithExtro ( ilLearningSequenceSettings  $object)

testCreate

Definition at line 79 of file ilLearningSequenceSettingsTest.php.

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

79  : void
80  {
81  $new_object = $object->withExtro("teststring");
82 
83  $this->assertEquals(self::TO_OBJ_ID, $object->getObjId());
84  $this->assertEquals(self::TO_ABSTRACT, $object->getAbstract());
85  $this->assertEquals(self::TO_EXTRO, $object->getExtro());
86  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $object->getAbstractImage());
87  $this->assertEquals(self::TO_EXTRO_IMAGE, $object->getExtroImage());
88  $this->assertEquals(self::TO_MEMBERS_GALLERY, $object->getMembersGallery());
89 
90  $this->assertEquals(self::TO_OBJ_ID, $new_object->getObjId());
91  $this->assertEquals(self::TO_ABSTRACT, $new_object->getAbstract());
92  $this->assertEquals("teststring", $new_object->getExtro());
93  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $new_object->getAbstractImage());
94  $this->assertEquals(self::TO_EXTRO_IMAGE, $new_object->getExtroImage());
95  $this->assertEquals(self::TO_MEMBERS_GALLERY, $new_object->getMembersGallery());
96  }
+ Here is the call graph for this function:

◆ testWithExtroImage()

ilLearningSequenceSettingsTest::testWithExtroImage ( ilLearningSequenceSettings  $object)

testCreate

Definition at line 123 of file ilLearningSequenceSettingsTest.php.

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

123  : void
124  {
125  $new_object = $object->withExtroImage("teststring");
126 
127  $this->assertEquals(self::TO_OBJ_ID, $object->getObjId());
128  $this->assertEquals(self::TO_ABSTRACT, $object->getAbstract());
129  $this->assertEquals(self::TO_EXTRO, $object->getExtro());
130  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $object->getAbstractImage());
131  $this->assertEquals(self::TO_EXTRO_IMAGE, $object->getExtroImage());
132  $this->assertEquals(self::TO_MEMBERS_GALLERY, $object->getMembersGallery());
133 
134  $this->assertEquals(self::TO_OBJ_ID, $new_object->getObjId());
135  $this->assertEquals(self::TO_ABSTRACT, $new_object->getAbstract());
136  $this->assertEquals(self::TO_EXTRO, $new_object->getExtro());
137  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $new_object->getAbstractImage());
138  $this->assertEquals("teststring", $new_object->getExtroImage());
139  $this->assertEquals(self::TO_MEMBERS_GALLERY, $new_object->getMembersGallery());
140  }
+ Here is the call graph for this function:

◆ testWithMembersGallery()

ilLearningSequenceSettingsTest::testWithMembersGallery ( ilLearningSequenceSettings  $object)

testCreate

Definition at line 145 of file ilLearningSequenceSettingsTest.php.

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

145  : void
146  {
147  $new_object = $object->withMembersGallery(false);
148 
149  $this->assertEquals(self::TO_OBJ_ID, $object->getObjId());
150  $this->assertEquals(self::TO_ABSTRACT, $object->getAbstract());
151  $this->assertEquals(self::TO_EXTRO, $object->getExtro());
152  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $object->getAbstractImage());
153  $this->assertEquals(self::TO_EXTRO_IMAGE, $object->getExtroImage());
154  $this->assertEquals(self::TO_MEMBERS_GALLERY, $object->getMembersGallery());
155 
156  $this->assertEquals(self::TO_OBJ_ID, $new_object->getObjId());
157  $this->assertEquals(self::TO_ABSTRACT, $new_object->getAbstract());
158  $this->assertEquals(self::TO_EXTRO, $new_object->getExtro());
159  $this->assertEquals(self::TO_ABSTRACT_IMAGE, $new_object->getAbstractImage());
160  $this->assertEquals(self::TO_EXTRO_IMAGE, $new_object->getExtroImage());
161  $this->assertEquals(false, $new_object->getMembersGallery());
162  }
+ Here is the call graph for this function:

Field Documentation

◆ TO_ABSTRACT

const ilLearningSequenceSettingsTest::TO_ABSTRACT = "abstract"

Definition at line 26 of file ilLearningSequenceSettingsTest.php.

◆ TO_ABSTRACT_IMAGE

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

Definition at line 28 of file ilLearningSequenceSettingsTest.php.

◆ TO_EXTRO

const ilLearningSequenceSettingsTest::TO_EXTRO = "extro"

Definition at line 27 of file ilLearningSequenceSettingsTest.php.

◆ TO_EXTRO_IMAGE

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

Definition at line 29 of file ilLearningSequenceSettingsTest.php.

◆ TO_MEMBERS_GALLERY

const ilLearningSequenceSettingsTest::TO_MEMBERS_GALLERY = true

Definition at line 31 of file ilLearningSequenceSettingsTest.php.

◆ TO_OBJ_ID

const ilLearningSequenceSettingsTest::TO_OBJ_ID = 10

Definition at line 25 of file ilLearningSequenceSettingsTest.php.

◆ TO_ONLINE

const ilLearningSequenceSettingsTest::TO_ONLINE = true

Definition at line 30 of file ilLearningSequenceSettingsTest.php.


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