5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
9 use \ILIAS\UI\Implementation as
I;
22 return new \ILIAS\UI\Implementation\Factory(
23 $this->createMock(
C\Counter\Factory::class),
24 $this->createMock(
C\Glyph\Factory::class),
25 $this->createMock(
C\
Button\Factory::class),
26 $this->createMock(
C\Listing\Factory::class),
27 $this->createMock(
C\Image\Factory::class),
28 $this->createMock(
C\Panel\Factory::class),
29 $this->createMock(
C\Modal\Factory::class),
30 $this->createMock(
C\Dropzone\Factory::class),
31 $this->createMock(
C\Popover\Factory::class),
32 $this->createMock(
C\Divider\Factory::class),
33 $this->createMock(
C\Link\Factory::class),
34 $this->createMock(
C\Dropdown\Factory::class),
35 $this->createMock(
C\Item\Factory::class),
36 $this->createMock(
C\Icon\Factory::class),
37 $this->createMock(
C\ViewControl\Factory::class),
38 $this->createMock(
C\Chart\Factory::class),
39 $this->createMock(
C\Input\Factory::class),
40 $this->createMock(
C\Table\Factory::class),
41 $this->createMock(
C\MessageBox\Factory::class),
50 $this->assertInstanceOf(
"ILIAS\\UI\\Factory",
$f);
51 $c =
$f->card()->standard(
"Card Title");
52 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Deck\\Deck",
$f->deck(array(
$c)));
58 $c =
$f->card()->standard(
"Card Title");
61 $this->assertEquals(
$d->getCards(), array(
$c));
67 $c =
$f->card()->standard(
"Card Title");
71 $this->assertEquals(
$d->getCards(), array(
$c,
$c));
78 $c =
$f->card()->standard(
"Card Title");
81 $this->assertEquals(
$d->getCardsSize(), C\Deck\Deck::SIZE_S);
88 $c =
$f->card()->standard(
"Card Title");
91 $d =
$d->withExtraSmallCardsSize();
92 $this->assertEquals(
$d->getCardsSize(), C\Deck\Deck::SIZE_XS);
94 $d = $d->withSmallCardsSize();
95 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_S);
97 $d = $d->withNormalCardsSize();
98 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_M);
100 $d = $d->withLargeCardsSize();
101 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_L);
103 $d = $d->withExtraLargeCardsSize();
104 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_XL);
106 $d = $d->withFullSizedCardsSize();
107 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_FULL);
114 $c =
$f->card()->standard(
"Card Title");
122 '<div class="il-deck"> 123 <div class="row row-eq-height"> 124 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div> 125 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div> 126 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div> 128 <div class="row row-eq-height"> 129 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div> 130 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div> 131 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div> 133 <div class="row row-eq-height"> 134 <div class="col-sm-12 col-md-4"><div class="il-card thumbnail"><div class="card-no-highlight"></div><div class="caption"><h5 class="card-title">Card Title</h5></div></div></div>
getDefaultRenderer(JavaScriptBinding $js_binding=null)
test_implements_factory_interface()
Test on deck implementation.
Provides common functionality for UI tests.
assertHTMLEquals($expected_html_as_string, $html_as_string)
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d