Test items.  
 More...
Test items. 
Definition at line 33 of file ItemTest.php.
 
◆ getFactory()
Definition at line 35 of file ItemTest.php.
Referenced by testGetTitle(), testImplementsFactoryInterface(), testLinkTitle(), testMainActionButton(), testMainActionLink(), testRenderAudioPlayer(), testRenderBase(), testRenderLeadIcon(), testRenderLeadImage(), testRenderLeadLetterAvatar(), testRenderLeadPictureAvatar(), testRenderLeadTextAndColor(), testRenderProgress(), testRenderProgressAndLeadIcon(), testRenderProgressAndLeadImage(), testShyTitleAndVariousProperties(), testWithActions(), testWithAudioPlayer(), testWithColor(), testWithDescription(), testWithLeadIcon(), testWithLeadImage(), testWithLeadLetterAvatar(), testWithLeadPictureAvatar(), testWithLeadText(), testWithMainActionButton(), testWithMainActionLink(), testWithNoLead(), testWithProgress(), and testWithProperties().
   37         return new I\Component\Item\Factory();
  
 
 
◆ testGetTitle()
      
        
          | ItemTest::testGetTitle  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testImplementsFactoryInterface()
      
        
          | ItemTest::testImplementsFactoryInterface  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testLinkTitle()
      
        
          | ItemTest::testLinkTitle  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 617 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  623         $html = 
$r->render(
$c);
   626 <div 
class=
"il-item il-std-item "><h4 
class=
"il-item-title"><a href=
"https://www.ilias.de">
ILIAS</a></h4></div>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
A Link is the often used combination of a label and an URL. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ChatMainBarProvider . 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testMainActionButton()
      
        
          | ItemTest::testMainActionButton  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 655 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  661         $main_action->method(
'getCanonicalName')->willReturn($expected_button_html);
   663         $c = 
$f->standard(
"Title")->withMainAction($main_action);
   670         <div 
class=
"il-item il-std-item ">
   671             <h4 
class=
"il-item-title">
Title</h4>
   672             <div 
class=
"il-item-actions l-bar__space-keeper">
   673                 <div 
class=
"l-bar__element">$expected_button_html
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testMainActionLink()
      
        
          | ItemTest::testMainActionLink  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 685 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  689         $main_action = $this->createMock(
I\
Component\
Link\Standard::class);
   690         $main_action->method(
'getCanonicalName')->willReturn($expected_link_html);
   692         $c = 
$f->standard(
"Title")->withMainAction($main_action);
   699         <div 
class=
"il-item il-std-item ">
   700             <h4 
class=
"il-item-title">
Title</h4>
   701             <div 
class=
"il-item-actions l-bar__space-keeper">
   702                 <div 
class=
"l-bar__element">$expected_link_html</div>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
A Link is the often used combination of a label and an URL. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderAudioPlayer()
      
        
          | ItemTest::testRenderAudioPlayer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testRenderBase()
      
        
          | ItemTest::testRenderBase  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 201 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS\Repository\button(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  206         $actions = 
new I\Component\Dropdown\Standard(array(
   210         $c = 
$f->standard(
"Item Title")
   211             ->withActions($actions)
   212             ->withProperties(array(
   213                 "Origin" => 
"Course Title 1",
   214                 "Last Update" => 
"24.11.2011",
   215                 "Location" => 
"Room 123, Main Street 44, 3012 Bern"))
   216             ->withDescription(
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
   218         $html = 
$r->render(
$c);
   221         <div 
class=
"il-item il-std-item ">
   222             <h4 
class=
"il-item-title">Item 
Title</h4>
   223                         <div 
class=
"il-item-actions l-bar__space-keeper"><div 
class=
"l-bar__element"><div 
class=
"dropdown"><
button class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown" id=
"id_3" aria-label=
"actions" aria-haspopup=
"true" aria-expanded=
"false" aria-controls=
"id_3_menu"><span 
class=
"caret"></span></
button>
   224                 <ul 
id=
"id_3_menu" class=
"dropdown-menu">
   225                         <li><
button class=
"btn btn-link" data-action=
"https://www.ilias.de" id=
"id_1"  >
ILIAS</button>
   227                         <li><button 
class=
"btn btn-link" data-action=
"https://www.github.com" id=
"id_2"  >GitHub</button>
   231                         <div 
class=
"il-item-description">Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.</div>
   232                         <hr 
class=
"il-item-divider" />
   234                 <div 
class=
"col-md-6 il-multi-line-cap-3">
   235                                         <span 
class=
"il-item-property-name">Origin</span><span 
class=
"il-item-property-value">Course 
Title 1</span>
   237                                 <div 
class=
"col-md-6 il-multi-line-cap-3">
   238                                         <span 
class=
"il-item-property-name">Last Update</span><span 
class=
"il-item-property-value">24.11.2011</span>
   242                 <div 
class=
"col-md-6 il-multi-line-cap-3">
   243                                         <span 
class=
"il-item-property-name">Location</span><span 
class=
"il-item-property-value">Room 123, 
Main Street 44, 3012 Bern</span>
   245                                 <div 
class=
"col-md-6 il-multi-line-cap-3">
   246                                         <span 
class=
"il-item-property-name"></span><span 
class=
"il-item-property-value"></span>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
button(string $caption, string $cmd)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
Class ChatMainBarProvider . 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderLeadIcon()
      
        
          | ItemTest::testRenderLeadIcon  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 287 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  292         $icon = 
new I\Component\Symbol\Icon\Standard(
"name", 
"aria_label", 
"small", 
false);
   294         $c = 
$f->standard(
"title")->withLeadIcon($icon);
   296         $html = 
$r->render(
$c);
   298 <div 
class=
"il-item il-std-item ">
   300                 <div 
class=
"media-left">
   301                         <img 
class=
"icon name small" src=
"./templates/default/images/standard/icon_default.svg" alt=
"aria_label" />
   303                 <div 
class=
"media-body">
   304             <h4 
class=
"il-item-title">title</h4>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderLeadImage()
      
        
          | ItemTest::testRenderLeadImage  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 258 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  263         $image = 
new I\Component\Image\Image(
"standard", 
"src", 
"str");
   265         $c = 
$f->standard(
"title")->withLeadImage($image);
   267         $html = 
$r->render(
$c);
   269 <div 
class=
"il-item il-std-item ">
   271                 <div 
class=
"col-xs-2 col-sm-3">
   272                         <img src=
"src" class=
"img-standard" alt=
"str" />
   274                 <div 
class=
"col-xs-10 col-sm-9">
   275             <h4 
class=
"il-item-title">title</h4>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderLeadLetterAvatar()
      
        
          | ItemTest::testRenderLeadLetterAvatar  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testRenderLeadPictureAvatar()
      
        
          | ItemTest::testRenderLeadPictureAvatar  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 348 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  353         $avatar = 
new Picture(
'./templates/default/images/placeholder/no_photo_xsmall.jpg', 
'demo.user');
   355         $c = 
$f->standard(
"title")->withLeadAvatar($avatar);
   357         $html = 
$r->render(
$c);
   359 <div 
class=
"il-item il-std-item ">
   361         <div 
class=
"media-left">
   362             <span 
class=
"il-avatar il-avatar-picture il-avatar-size-large">
   363                 <img src=
"./templates/default/images/placeholder/no_photo_xsmall.jpg" alt=
"user_avatar"/>
   366         <div 
class=
"media-body">
   367             <h4 
class=
"il-item-title">title</h4>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderLeadTextAndColor()
      
        
          | ItemTest::testRenderLeadTextAndColor  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testRenderProgress()
      
        
          | ItemTest::testRenderProgress  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 379 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  384         $chart = 
new I\Component\Chart\ProgressMeter\Standard(100, 75);
   386         $c = 
$f->standard(
"title")->withProgress($chart);
   388         $html = 
$r->render(
$c);
   390 <div 
class=
"il-item il-std-item ">
   392             <div 
class=
"col-sm-9">
   393             <h4 
class=
"il-item-title">title</h4>
   395                 <div 
class=
"col-xs-3 col-sm-2 col-lg-2">
   396                     <div 
class=
"il-chart-progressmeter-box ">
   397                         <div 
class=
"il-chart-progressmeter-container">
   398                             <svg viewBox=
"0 0 50 40" class=
"il-chart-progressmeter-viewbox">
   399                                 <path 
class=
"il-chart-progressmeter-circle-bg" stroke-dasharray=
"100, 100" d=
"M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
   400                         <g 
class=
"il-chart-progressmeter-monocircle">
   401                             <path 
class=
"il-chart-progressmeter-circle no-success" stroke-dasharray=
"75, 100" d=
"M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
   403                         <g 
class=
"il-chart-progressmeter-text">
   404                             <text 
class=
"text-score-info" x=
"25" y=
"16"></text>
   405                             <text 
class=
"text-score" x=
"25" y=
"25">75 %</text>
   406                             <text 
class=
"text-comparision" x=
"25" y=
"31"></text>
   407                             <text 
class=
"text-comparision-info" x=
"25" y=
"34"></text>
   409                         <g 
class=
"il-chart-progressmeter-needle no-needle" style=
"transform: rotate(deg)">
   410                             <polygon 
class=
"il-chart-progressmeter-needle-border" points=
"23.5,0.1 25,2.3 26.5,0.1"></polygon>
   411                             <polygon 
class=
"il-chart-progressmeter-needle-fill" points=
"23.5,0 25,2.2 26.5,0"></polygon>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderProgressAndLeadIcon()
      
        
          | ItemTest::testRenderProgressAndLeadIcon  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 479 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  484         $icon = 
new I\Component\Symbol\Icon\Standard(
"name", 
"aria_label", 
"small", 
false);
   485         $chart = 
new I\Component\Chart\ProgressMeter\Standard(100, 75);
   487         $c = 
$f->standard(
"title")->withLeadIcon($icon)->withProgress($chart);
   489         $html = 
$r->render(
$c);
   491 <div 
class=
"il-item il-std-item ">
   493                 <div 
class=
"media-left">
   494                         <img 
class=
"icon name small" src=
"./templates/default/images/standard/icon_default.svg" alt=
"aria_label" />
   496                 <div 
class=
"media-body">
   497             <h4 
class=
"il-item-title">title</h4>
   499                 <div 
class=
"media-right">
   500                         <div 
class=
"il-chart-progressmeter-box ">
   501                         <div 
class=
"il-chart-progressmeter-container">
   502                             <svg viewBox=
"0 0 50 40" class=
"il-chart-progressmeter-viewbox">
   503                                 <path 
class=
"il-chart-progressmeter-circle-bg" stroke-dasharray=
"100, 100" d=
"M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
   504                         <g 
class=
"il-chart-progressmeter-monocircle">
   505                             <path 
class=
"il-chart-progressmeter-circle no-success" stroke-dasharray=
"75, 100" d=
"M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
   507                         <g 
class=
"il-chart-progressmeter-text">
   508                             <text 
class=
"text-score-info" x=
"25" y=
"16"></text>
   509                             <text 
class=
"text-score" x=
"25" y=
"25">75 %</text>
   510                             <text 
class=
"text-comparision" x=
"25" y=
"31"></text>
   511                             <text 
class=
"text-comparision-info" x=
"25" y=
"34"></text>
   513                         <g 
class=
"il-chart-progressmeter-needle no-needle" style=
"transform: rotate(deg)">
   514                             <polygon 
class=
"il-chart-progressmeter-needle-border" points=
"23.5,0.1 25,2.3 26.5,0.1"></polygon>
   515                             <polygon 
class=
"il-chart-progressmeter-needle-fill" points=
"23.5,0 25,2.2 26.5,0"></polygon>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testRenderProgressAndLeadImage()
      
        
          | ItemTest::testRenderProgressAndLeadImage  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 427 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  432         $image = 
new I\Component\Image\Image(
"standard", 
"src", 
"str");
   433         $chart = 
new I\Component\Chart\ProgressMeter\Standard(100, 75);
   435         $c = 
$f->standard(
"title")->withLeadImage($image)->withProgress($chart);
   437         $html = 
$r->render(
$c);
   439 <div 
class=
"il-item il-std-item ">
   441             <div 
class=
"col-xs-3 col-sm-3 col-lg-2">
   442                         <img src=
"src" class=
"img-standard" alt=
"str" />
   444             <div 
class=
"col-xs-6 col-sm-7 col-lg-8">
   445             <h4 
class=
"il-item-title">title</h4>
   447                 <div 
class=
"col-xs-3 col-sm-2 col-lg-2">
   448                     <div 
class=
"il-chart-progressmeter-box ">
   449                         <div 
class=
"il-chart-progressmeter-container">
   450                             <svg viewBox=
"0 0 50 40" class=
"il-chart-progressmeter-viewbox">
   451                                 <path 
class=
"il-chart-progressmeter-circle-bg" stroke-dasharray=
"100, 100" d=
"M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
   452                         <g 
class=
"il-chart-progressmeter-monocircle">
   453                             <path 
class=
"il-chart-progressmeter-circle no-success" stroke-dasharray=
"75, 100" d=
"M10.4646,37.0354 q-5.858,-5.858 -5.858,-14.142 a1,1 0 1,1 40,0 q0,8.284 -5.858,14.142"></path>
   455                         <g 
class=
"il-chart-progressmeter-text">
   456                             <text 
class=
"text-score-info" x=
"25" y=
"16"></text>
   457                             <text 
class=
"text-score" x=
"25" y=
"25">75 %</text>
   458                             <text 
class=
"text-comparision" x=
"25" y=
"31"></text>
   459                             <text 
class=
"text-comparision-info" x=
"25" y=
"34"></text>
   461                         <g 
class=
"il-chart-progressmeter-needle no-needle" style=
"transform: rotate(deg)">
   462                             <polygon 
class=
"il-chart-progressmeter-needle-border" points=
"23.5,0.1 25,2.3 26.5,0.1"></polygon>
   463                             <polygon 
class=
"il-chart-progressmeter-needle-fill" points=
"23.5,0 25,2.2 26.5,0"></polygon>
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
 
 
 
 
◆ testShyTitleAndVariousProperties()
      
        
          | ItemTest::testShyTitleAndVariousProperties  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 562 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), ILIAS\Repository\button(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
  566         $df = 
new Data\Factory();
   568         $df->color(
'#ff00ff');
   572                 "Property Text" => 
"Text",
   573                 "Property HTML" => 
"<a>Link</a>",
   574                 "Property Shy" => 
new I\
Component\
Button\Shy(
"GitHub", 
"https://www.github.com"),
   575                 "Property Icon" => 
new I\
Component\Symbol\Icon\
Standard(
"name", 
"aria_label", 
"small", 
false)
   580 <div 
class=
"il-item il-std-item ">
   581     <h4 
class=
"il-item-title">
   584     <hr 
class=
"il-item-divider" />
   586         <div 
class=
"col-md-6 il-multi-line-cap-3">
   587             <span 
class=
"il-item-property-name">Property Text</span>
   588             <span 
class=
"il-item-property-value">Text</span>
   590         <div 
class=
"col-md-6 il-multi-line-cap-3">
   591             <span 
class=
"il-item-property-name">Property HTML</span>
   592             <span 
class=
"il-item-property-value">
   598         <div 
class=
"col-md-6 il-multi-line-cap-3">
   599             <span 
class=
"il-item-property-name">Property Shy</span>
   600             <span 
class=
"il-item-property-value">
   601                 <
button class=
"btn btn-link" data-action=
"https://www.github.com" id=
"id_2">GitHub</button>
   604         <div 
class=
"col-md-6 il-multi-line-cap-3">
   605             <span 
class=
"il-item-property-name">Property Icon</span>
   606             <span 
class=
"il-item-property-value">
   607                 <img 
class=
"icon name small" src=
"./templates/default/images/standard/icon_default.svg" alt=
"aria_label"/>
   614         $this->assertEquals($expected, $html);
 getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
button(string $caption, string $cmd)
 
A Link is the often used combination of a label and an URL. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML. 
 
ILIAS base class perform basic setup: init database handler, load configuration file, init user authentification & error handler, load object type definitions. 
 
 
 
 
◆ testWithActions()
      
        
          | ItemTest::testWithActions  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 84 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, and getFactory().
   88         $actions = 
new I\Component\Dropdown\Standard(array(
    92         $c = 
$f->standard(
"title")->withActions($actions);
    94         $this->assertEquals(
$c->getActions(), $actions);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ testWithAudioPlayer()
      
        
          | ItemTest::testWithAudioPlayer  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithColor()
      
        
          | ItemTest::testWithColor  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithDescription()
      
        
          | ItemTest::testWithDescription  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithLeadIcon()
      
        
          | ItemTest::testWithLeadIcon  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithLeadImage()
      
        
          | ItemTest::testWithLeadImage  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithLeadLetterAvatar()
      
        
          | ItemTest::testWithLeadLetterAvatar  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithLeadPictureAvatar()
      
        
          | ItemTest::testWithLeadPictureAvatar  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithLeadText()
      
        
          | ItemTest::testWithLeadText  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithMainActionButton()
      
        
          | ItemTest::testWithMainActionButton  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 181 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, and getFactory().
  186         $c = 
$f->standard(
"Title")->withMainAction($main_action);
   188         $this->assertEquals(
$c->getMainAction(), $main_action);
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ testWithMainActionLink()
      
        
          | ItemTest::testWithMainActionLink  | 
          ( | 
           | ) | 
           | 
        
      
 
Definition at line 191 of file ItemTest.php.
References Vendor\Package\$c, Vendor\Package\$f, and getFactory().
  195         $main_action = $this->createMock(
I\
Component\
Link\Standard::class);
   196         $c = 
$f->standard(
"Title")->withMainAction($main_action);
   198         $this->assertEquals(
$c->getMainAction(), $main_action);
 A Link is the often used combination of a label and an URL. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
 
 
 
◆ testWithNoLead()
      
        
          | ItemTest::testWithNoLead  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithProgress()
      
        
          | ItemTest::testWithProgress  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ testWithProperties()
      
        
          | ItemTest::testWithProperties  | 
          ( | 
           | ) | 
           | 
        
      
 
 
The documentation for this class was generated from the following file: