Skip to content

Commit

Permalink
Fix UserPreferencesHeaderTest failing test in Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Jun 19, 2019
1 parent 0bd9cc2 commit dd0db50
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions test/classes/UserPreferencesHeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,19 @@ public function testGetContentWithSelectedTab(): void
$_GET['form'] = 'Features';

$template = new Template();
$content = UserPreferencesHeader::getContent($template, new Relation($dbi, $template));

$this->assertStringContainsString(
'<li class="active">' . \PHP_EOL
. \PHP_EOL
. ' <a href="prefs_forms.php?form=Features&amp;server=0&amp;lang=en" class="tabactive">' . \PHP_EOL
. ' <img src="themes/dot.gif" title="Features" alt="Features" class="icon ic_b_tblops">&nbsp;Features' . \PHP_EOL
. ' </a>' . \PHP_EOL
. ' </li>',
UserPreferencesHeader::getContent($template, new Relation($dbi, $template))
'<li class="active">',
$content
);
$this->assertStringContainsString(
'<a href="prefs_forms.php?form=Features&amp;server=0&amp;lang=en" class="tabactive">',
$content
);
$this->assertStringContainsString(
'<img src="themes/dot.gif" title="Features" alt="Features" class="icon ic_b_tblops">&nbsp;Features',
$content
);
}

Expand Down

0 comments on commit dd0db50

Please sign in to comment.