5require_once(__DIR__.
"/../../../../libs/composer/vendor/autoload.php");
 
    6require_once(__DIR__.
"/../../Base.php");
 
    8use \ILIAS\UI\Component as 
C;
 
   20                return new \ILIAS\UI\Implementation\Factory();
 
   26                $this->assertInstanceOf(
"ILIAS\\UI\\Factory", $f);
 
   27                $this->assertInstanceOf( 
"ILIAS\\UI\\Component\\Card\\Card", $f->card(
"Card Title"));
 
   32                $c = $f->card(
"Card Title");
 
   34                $this->assertEquals($c->getTitle(), 
"Card Title");
 
   40                $c = $f->card(
"Card Title");
 
   41                $c = $c->withTitle(
"Card Title New");
 
   43                $this->assertEquals($c->getTitle(), 
"Card Title New");
 
   49                $image = $f->image()->standard(
"src",
"str");
 
   50                $c = $f->card(
"Card Title",$image);
 
   52                $this->assertEquals($c->getImage(), $image);
 
   58                $image = $f->image()->standard(
"src",
"str");
 
   59                $c = $f->card(
"Card Title",$image);
 
   61                $image_new = $f->image()->standard(
"src/new",
"str");
 
   63                $c = $c->withImage($image_new);
 
   65                $this->assertEquals($c->getImage(), $image_new);
 
   71                $c = $f->card(
"Card Title");
 
   73                $content = $f->legacy(
"Random Content");
 
   75                $c = $c->withSections(array($content));
 
   77                $this->assertEquals($c->getSections(), array($content));
 
   84                $c = $f->card(
"Card Title");
 
   89                                "<div class=\"il-card thumbnail\">".
 
   90                                "   <div class=\"caption\">".
 
   91                                "       <h5 class=\"card-title\">Card Title</h5>".
 
  102                $image = $f->image()->standard(
"src",
"alt");
 
  104                $c = $f->card(
"Card Title",$image);
 
  106                $content = $f->legacy(
"Random Content");
 
  108                $c = $c->withSections(array($content));
 
  113                                "<div class=\"il-card thumbnail\">".
 
  114                                "   <img src=\"src\" class=\"img-standard\" alt=\"alt\" />".
 
  115                                "   <div class=\"caption\">".
 
  116                                "       <h5 class=\"card-title\">Card Title</h5>".
 
  118                                "   <div class=\"caption\">Random Content</div>".
 
An exception for terminatinating execution or to throw for unit testing.
Test on card implementation.
test_implements_factory_interface()
test_render_content_full()
test_render_content_empty()
Provides common functionality for UI tests.
assertHTMLEquals($expected_html_as_string, $html_as_string)