19 declare(strict_types=1);
21 require_once(
"vendor/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"../../../../Base.php");
38 $this->title =
'title';
39 $this->image =
new I\Image\Image(
C\
Image\Image::STANDARD,
'path',
'alt');
40 $this->description =
'description';
75 $this->assertEquals($this->title, $item->getTitle());
81 $this->assertEquals($this->image, $item->getIcon());
83 $this->assertNull($item->getIcon());
89 $this->assertEquals($this->description, $item->getDescription());
91 $this->assertEquals(
'', $item->getDescription());
96 $r = $this->getDefaultRenderer();
100 <tr
class=
"c-modal--interruptive__items__standard">
102 <img src=
"path" class=
"img-standard" alt=
"alt" />
109 <input type=
"hidden" name=
"interruptive_items[]" value=
"id">
115 $this->brutallyTrimHTML($expected),
116 $this->brutallyTrimHTML($html)
122 $r = $this->getDefaultRenderer();
126 <tr
class=
"c-modal--interruptive__items__standard">
128 <img src=
"path" class=
"img-standard" alt=
"alt" />
134 <input type=
"hidden" name=
"interruptive_items[]" value=
"id">
140 $this->brutallyTrimHTML($expected),
141 $this->brutallyTrimHTML($html)
147 $r = $this->getDefaultRenderer();
151 <tr
class=
"c-modal--interruptive__items__standard">
158 <input type=
"hidden" name=
"interruptive_items[]" value=
"id">
164 $this->brutallyTrimHTML($expected),
165 $this->brutallyTrimHTML($html)
testRenderWithoutDescription()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getItemWithoutDescription()