Skip to content

Commit

Permalink
enable test_increment_num_visits_exceededbigbuy sync
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Jan 4, 2025
1 parent 7975387 commit 347005d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tests/MagicLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,16 @@ public function test_increment_num_visits()

public function test_increment_num_visits_exceeded()
{
$this->markTestSkipped();
$magiclink = MagicLink::create(new LoginAction(User::first()), null, 1);

$magiclink->num_visits = 1;
$magiclink->save();

$this->get($magiclink->url)->assertStatus(403);

$magiclink->refresh();

$this->assertEquals(1, $magiclink->num_visits);
}

public function test_create_magiclink_with_custom_base_url()
Expand Down

0 comments on commit 347005d

Please sign in to comment.