Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfox committed Nov 30, 2024
1 parent 8b4673f commit 1820afb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/MailSubscriberTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace YlsIdeas\SubscribableNotifications\Tests;

use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\URL;
use Orchestra\Testbench\TestCase;
use YlsIdeas\SubscribableNotifications\Facades\Subscriber;
use YlsIdeas\SubscribableNotifications\SubscribableServiceProvider;
Expand Down Expand Up @@ -45,8 +46,9 @@ public function it_generates_a_signed_url_for_users_to_unsubscribe()

$url = $user->unsubscribeLink();


$this->assertEquals(
'http://localhost/unsubscribe/1?signature=bcc7b9f9909fb5f427f1b55022ee44eafee3d655a449f48d2e751748e1a9bcdf',
URL::signedRoute('unsubscribe', ['subscriber' => 1]),
$url
);
}
Expand All @@ -68,7 +70,7 @@ public function it_generates_a_signed_url_for_users_to_unsubscribe_from_a_mailin
$url = $user->unsubscribeLink('test');

$this->assertEquals(
'http://localhost/unsubscribe/1/test?signature=edaf5bee199875521054535be04273c5006e4d6d834c98a83a3aa16a92223814',
URL::signedRoute('unsubscribe', ['subscriber' => 1, 'mailingList' => 'test']),
$url
);
}
Expand Down

0 comments on commit 1820afb

Please sign in to comment.