Test on deck implementation.
More...
Test on deck implementation.
Definition at line 13 of file DeckTest.php.
◆ getFactory()
◆ test_get_cards()
DeckTest::test_get_cards |
( |
| ) |
|
Definition at line 33 of file DeckTest.php.
References $d, array, and getFactory().
36 $c = $f->card(
"Card Title");
39 $this->assertEquals(
$d->getCards(),
array($c));
Create styles array
The data for the language used.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
◆ test_get_size()
DeckTest::test_get_size |
( |
| ) |
|
Definition at line 52 of file DeckTest.php.
References $d, array, and getFactory().
56 $c = $f->card(
"Card Title");
59 $this->assertEquals(
$d->getCardsSize(), C\Deck\Deck::SIZE_S);
Create styles array
The data for the language used.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
◆ test_implements_factory_interface()
DeckTest::test_implements_factory_interface |
( |
| ) |
|
Definition at line 24 of file DeckTest.php.
References array, and getFactory().
28 $this->assertInstanceOf(
"ILIAS\\UI\\Factory", $f);
29 $c = $f->card(
"Card Title");
30 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Deck\\Deck", $f->deck(
array($c)));
Create styles array
The data for the language used.
◆ test_render_content()
DeckTest::test_render_content |
( |
| ) |
|
Definition at line 88 of file DeckTest.php.
References $d, $html, $r, array, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
92 $c = $f->card(
"Card Title");
95 $d =
$d->withCards(
array($c,$c,$c,$c,$c,$c,$c))->withLargeCardsSize();
100 '<div class="il-deck"> 101 <div class="row row-eq-height"> 102 <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> 103 <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> 104 <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> 106 <div class="row row-eq-height"> 107 <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> 108 <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> 109 <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> 111 <div class="row row-eq-height"> 112 <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)
assertHTMLEquals($expected_html_as_string, $html_as_string)
Create styles array
The data for the language used.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
◆ test_with_cards()
DeckTest::test_with_cards |
( |
| ) |
|
Definition at line 42 of file DeckTest.php.
References $d, array, and getFactory().
45 $c = $f->card(
"Card Title");
49 $this->assertEquals(
$d->getCards(),
array($c,$c));
Create styles array
The data for the language used.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
◆ test_with_size()
DeckTest::test_with_size |
( |
| ) |
|
Definition at line 62 of file DeckTest.php.
References $d, array, and getFactory().
66 $c = $f->card(
"Card Title");
69 $d =
$d->withExtraSmallCardsSize();
70 $this->assertEquals(
$d->getCardsSize(), C\Deck\Deck::SIZE_XS);
72 $d = $d->withSmallCardsSize();
73 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_S);
75 $d = $d->withNormalCardsSize();
76 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_M);
78 $d = $d->withLargeCardsSize();
79 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_L);
81 $d = $d->withExtraLargeCardsSize();
82 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_XL);
84 $d = $d->withFullSizedCardsSize();
85 $this->assertEquals($d->getCardsSize(), C\Deck\Deck::SIZE_FULL);
Create styles array
The data for the language used.
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
The documentation for this class was generated from the following file: