Skip to content

Commit

Permalink
mode-info: adjusted unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
catkrahl authored and catenglaender committed Jul 24, 2023
1 parent f04f5ba commit 63df812
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/UI/Component/MainControls/ModeInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,21 @@ public function testRendering(): void
$html = $r->render($mode_info);

$expected = <<<EOT
<div class="il-mode-info">
<span class="il-mode-info-content">$mode_title<a tabindex="0" class="glyph" href="$uri_string" aria-label="close"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></a>
</span>
</div>
EOT;
<div class="c-mode-info__pageframe"></div>
<div class="c-mode-info">
<div class="c-mode-info__content">
<div class="c-mode-info__label">
{MODE_TITLE}
</div>
<div class="c-mode-info__close">
{CLOSE_GLYPH}
</div>
</div>
</div>
<div class="c-mode-info__mobile-padding"></div>
EOT;

$this->assertEquals(
$this->brutallyTrimHTML($expected),
Expand Down

0 comments on commit 63df812

Please sign in to comment.