3 declare(strict_types=1);
11 const DESC =
"description";
36 $this->post_condition,
40 $this->assertEquals($object->getType(), self::TYPE);
41 $this->assertEquals($object->getTitle(), self::TITLE);
42 $this->assertEquals($object->getDescription(), self::DESC);
43 $this->assertEquals($object->getIconPath(), self::ICON_PATH);
44 $this->assertEquals($object->isOnline(), self::IS_ONLINE);
45 $this->assertEquals($object->getOrderNumber(), self::ORDER_NUMBER);
47 $this->assertEquals($object->getRefId(), self::REF_ID);
59 $this->assertEquals($object->
getType(), self::TYPE);
60 $this->assertEquals($object->
getTitle(), self::TITLE);
62 $this->assertEquals($object->
getIconPath(), self::ICON_PATH);
63 $this->assertEquals($object->
isOnline(), self::IS_ONLINE);
64 $this->assertEquals($object->
getOrderNumber(), self::ORDER_NUMBER);
66 $this->assertEquals($object->
getRefId(), self::REF_ID);
68 $this->assertEquals($new_obj->getType(), self::TYPE);
69 $this->assertEquals($new_obj->getTitle(), self::TITLE);
70 $this->assertEquals($new_obj->getDescription(), self::DESC);
71 $this->assertEquals($new_obj->getIconPath(), self::ICON_PATH);
72 $this->assertEquals($new_obj->isOnline(),
false);
73 $this->assertEquals($new_obj->getOrderNumber(), self::ORDER_NUMBER);
75 $this->assertEquals($new_obj->getRefId(), self::REF_ID);
85 $this->assertEquals($object->
getType(), self::TYPE);
86 $this->assertEquals($object->
getTitle(), self::TITLE);
88 $this->assertEquals($object->
getIconPath(), self::ICON_PATH);
89 $this->assertEquals($object->
isOnline(), self::IS_ONLINE);
90 $this->assertEquals($object->
getOrderNumber(), self::ORDER_NUMBER);
92 $this->assertEquals($object->
getRefId(), self::REF_ID);
94 $this->assertEquals($new_obj->getType(), self::TYPE);
95 $this->assertEquals($new_obj->getTitle(), self::TITLE);
96 $this->assertEquals($new_obj->getDescription(), self::DESC);
97 $this->assertEquals($new_obj->getIconPath(), self::ICON_PATH);
98 $this->assertEquals($new_obj->isOnline(), self::IS_ONLINE);
99 $this->assertEquals($new_obj->getOrderNumber(), 20);
101 $this->assertEquals($new_obj->getRefId(), self::REF_ID);
112 $this->assertEquals($object->
getType(), self::TYPE);
113 $this->assertEquals($object->
getTitle(), self::TITLE);
115 $this->assertEquals($object->
getIconPath(), self::ICON_PATH);
116 $this->assertEquals($object->
isOnline(), self::IS_ONLINE);
117 $this->assertEquals($object->
getOrderNumber(), self::ORDER_NUMBER);
119 $this->assertEquals($object->
getRefId(), self::REF_ID);
121 $this->assertEquals($new_obj->getType(), self::TYPE);
122 $this->assertEquals($new_obj->getTitle(), self::TITLE);
123 $this->assertEquals($new_obj->getDescription(), self::DESC);
124 $this->assertEquals($new_obj->getIconPath(), self::ICON_PATH);
125 $this->assertEquals($new_obj->isOnline(), self::IS_ONLINE);
126 $this->assertEquals($new_obj->getOrderNumber(), self::ORDER_NUMBER);
127 $this->assertEquals($new_obj->getPostCondition(), $pc);
128 $this->assertEquals($new_obj->getRefId(), self::REF_ID);
136 $this->expectException(TypeError::class);
145 $this->expectException(TypeError::class);
154 $this->expectException(TypeError::class);
withOrderNumber(int $order_number)
testWrongValueInWithOrderNumber(LSItem $object)
testCreate
testWithOrderNumber(LSItem $object)
testCreate
Data holding class LSItem .
testWrongValueInWithOnline(LSItem $object)
testCreate
A PostCondition does restrict the progression of a user through the learning sequence.
withPostCondition(ilLSPostCondition $postcondition)
testWithOnline(LSItem $object)
testCreate
testWithPostCondition(LSItem $object)
testCreate
testWrongValueInWithPostCondition(LSItem $object)
testCreate