Skip to content

Commit

Permalink
add test to url legacy (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
cesargb committed Nov 29, 2023
1 parent a2f6276 commit 225c3c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/HttpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,17 @@ public function test_http_options_request_has_not_effects()

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

public function test_http_urlencode_legacy()
{
$magiclink = MagicLink::create(new ResponseAction(function () {
return 'private content';
}));

$urlLegacy = str_replace(urlencode(':'), ':', $magiclink->url);

$this->get($urlLegacy)
->assertStatus(200)
->assertSeeText('private content');
}
}

0 comments on commit 225c3c2

Please sign in to comment.