19declare(strict_types=1);
21use PHPUnit\Framework\TestCase;
42 self::TO_ABSTRACT_IMAGE,
44 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);
54 $this->assertEquals($object->getMode(), self::TO_MODE);
59 #[\PHPUnit\Framework\Attributes\Depends('testCreate')]
64 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
65 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
66 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
68 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
71 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
72 $this->assertEquals($new_object->getAbstract(),
"teststring");
73 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
74 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
75 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
76 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
79 #[\PHPUnit\Framework\Attributes\Depends('testCreate')]
82 $new_object = $object->
withExtro(
"teststring");
84 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
85 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
86 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
88 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
91 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
92 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
93 $this->assertEquals($new_object->getExtro(),
"teststring");
94 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
95 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
96 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
99 #[\PHPUnit\Framework\Attributes\Depends('testCreate')]
104 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
105 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
106 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
108 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
111 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
112 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
113 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
114 $this->assertEquals($new_object->getAbstractImage(),
"teststring");
115 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
116 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
119 #[\PHPUnit\Framework\Attributes\Depends('testCreate')]
124 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
125 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
126 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
128 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
131 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
132 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
133 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
134 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
135 $this->assertEquals($new_object->getExtroImage(),
"teststring");
136 $this->assertEquals($new_object->getMembersGallery(), self::TO_MEMBERS_GALLERY);
139 #[\PHPUnit\Framework\Attributes\Depends('testCreate')]
144 $this->assertEquals($object->
getObjId(), self::TO_OBJ_ID);
145 $this->assertEquals($object->
getAbstract(), self::TO_ABSTRACT);
146 $this->assertEquals($object->
getExtro(), self::TO_EXTRO);
148 $this->assertEquals($object->
getExtroImage(), self::TO_EXTRO_IMAGE);
151 $this->assertEquals($new_object->getObjId(), self::TO_OBJ_ID);
152 $this->assertEquals($new_object->getAbstract(), self::TO_ABSTRACT);
153 $this->assertEquals($new_object->getExtro(), self::TO_EXTRO);
154 $this->assertEquals($new_object->getAbstractImage(), self::TO_ABSTRACT_IMAGE);
155 $this->assertEquals($new_object->getExtroImage(), self::TO_EXTRO_IMAGE);
156 $this->assertEquals($new_object->getMembersGallery(),
false);
159 #[\PHPUnit\Framework\Attributes\Depends('testCreate')]
164 $this->assertEquals($object->
getMode(), self::TO_MODE);
testWithExtroImage(ilLearningSequenceSettings $object)
testWithExtro(ilLearningSequenceSettings $object)
testWithAbstractImage(ilLearningSequenceSettings $object)
testWithMembersGallery(ilLearningSequenceSettings $object)
testWithAbstract(ilLearningSequenceSettings $object)
testWithMode(ilLearningSequenceSettings $object)
Settings for an LSO (like abstract, extro)
withAbstract(string $abstract)
withMembersGallery(bool $members_gallery)
withExtroImage(?string $path=null)
withAbstractImage(?string $path=null)