An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
test(auth): expect invitation link to use auth.link route
Andras Bacsai45d942669095
diff --git a/tests/Feature/TeamInvitationPrivilegeEscalationTest.php b/tests/Feature/TeamInvitationPrivilegeEscalationTest.phpindex af8a57cdd3..06013935ff 100644--- a/tests/Feature/TeamInvitationPrivilegeEscalationTest.php+++ b/tests/Feature/TeamInvitationPrivilegeEscalationTest.php@@ -202,7 +202,8 @@ describe('privilege escalation prevention', function () {$invitation = TeamInvitation::whereEmail('[email protected]')->firstOrFail();- expect($invitation->link)->toStartWith('http://localhost/auth/link?token=');+ $expectedPrefix = route('auth.link', ['token' => '']);+ expect($invitation->link)->toStartWith($expectedPrefix);});test('member cannot bypass policy by calling viaEmail', function () {