19 declare(strict_types=1);
42 self::TO_ABSTRACT_IMAGE,
45 self::TO_MEMBERS_GALLERY
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);
58 #[\PHPUnit\Framework\Attributes\Depends('testCreate')] 63 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
64 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
65 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
67 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
70 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
71 $this->assertEquals($new_object->getAbstract(),
"teststring");
72 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
73 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
74 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
75 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
78 #[\PHPUnit\Framework\Attributes\Depends('testCreate')] 81 $new_object = $object->
withExtro(
"teststring");
83 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
84 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
85 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
87 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
90 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
91 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
92 $this->assertEquals($new_object->getExtro(),
"teststring");
93 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
94 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
95 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
98 #[\PHPUnit\Framework\Attributes\Depends('testCreate')] 103 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
104 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
105 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
107 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
110 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
111 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
112 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
113 $this->assertEquals($new_object->getAbstractImage(),
"teststring");
114 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
115 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
118 #[\PHPUnit\Framework\Attributes\Depends('testCreate')] 123 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
124 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
125 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
127 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
130 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
131 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
132 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
133 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
134 $this->assertEquals($new_object->getExtroImage(),
"teststring");
135 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
138 #[\PHPUnit\Framework\Attributes\Depends('testCreate')] 143 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
144 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
145 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
147 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
150 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
151 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
152 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
153 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
154 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
155 $this->assertEquals($new_object->getMembersGallery(),
false);
testWithMembersGallery(ilLearningSequenceSettings $object)
testWithAbstract(ilLearningSequenceSettings $object)
testWithAbstractImage(ilLearningSequenceSettings $object)
withExtroImage(?string $path=null)
testWithExtroImage(ilLearningSequenceSettings $object)
withAbstractImage(?string $path=null)
withMembersGallery(bool $members_gallery)
Settings for an LSO (like abstract, extro)
withAbstract(string $abstract)
testWithExtro(ilLearningSequenceSettings $object)