Skip to content

Commit

Permalink
Update PrivacyWidgetTest.php
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar authored Jun 28, 2020
1 parent ec65cde commit 2b4fcab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/widgets/PrivacyWidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ class PrivacyWidgetTest extends PrivacyTestCase
{
public function testWidgetStandardOutput()
{
$this->assertSameTrimmed('<div class="luya-privacy-widget-container"><div>We use cookies to improve your experience on our website. Please read and accept our privacy policies.</div><a class="btn btn-primary" href="/?acceptCookies=1">Accept</a></div>', PrivacyWidget::widget(['forceOutput' => true]));
$this->assertSameTrimmed('<div class="luya-privacy-widget-container"><div>We use cookies to improve your experience on our website. Please read and accept our privacy policies.</div><a class="btn btn-primary" href="/?acceptCookies=1" rel="nofollow">Accept</a></div>', PrivacyWidget::widget(['forceOutput' => true]));
}

public function testWidgetOutputWithContainerClass()
{
$this->assertSameTrimmed('<div class="luya-privacy-widget-container fixed-bottom"><div>We use cookies to improve your experience on our website. Please read and accept our privacy policies.</div><a class="btn btn-primary" href="/?acceptCookies=1">Accept</a></div>', PrivacyWidget::widget(['forceOutput' => true, 'containerCssClass' => 'fixed-bottom']));
$this->assertSameTrimmed('<div class="luya-privacy-widget-container fixed-bottom"><div>We use cookies to improve your experience on our website. Please read and accept our privacy policies.</div><a class="btn btn-primary" href="/?acceptCookies=1" rel="nofollow">Accept</a></div>', PrivacyWidget::widget(['forceOutput' => true, 'containerCssClass' => 'fixed-bottom']));
}

public function testAppendUrl()
Expand Down Expand Up @@ -61,7 +61,7 @@ public function testWrapper()
]);

$this->assertSameTrimmed('<around><div class="luya-privacy-widget-container">
<div>We use cookies to improve your experience on our website. Please read and accept our privacy policies.</div> <a class="btn btn-primary" href="/?acceptCookies=1">Accept</a> </div></around>', $content);
<div>We use cookies to improve your experience on our website. Please read and accept our privacy policies.</div> <a class="btn btn-primary" href="/?acceptCookies=1" rel="nofollow">Accept</a> </div></around>', $content);
}
/*
public function testDeclineButtonOutput()
Expand Down

0 comments on commit 2b4fcab

Please sign in to comment.