Files
rootandClaude Sonnet 5 0c6a297198 Add Privacy Policy and Terms of Service pages
Registration collects health-adjacent data (age, weight, height, health
notes, goals) with no privacy policy or ToS anywhere in the app. Adds
both as real pages at /privacy and /terms, a site-wide footer linking to
them (the app had no footer at all outside the homepage), and a consent
line on the registration form. Both pages are marked as a starting draft
with bracketed placeholders for operator/jurisdiction details rather
than inventing legal claims the app can't back up.

Also removed the homepage's own footer, which duplicated the new global
one and whose Privacy/Terms/About/Contact links were all dead `#`
placeholders, and fixed APP_NAME (was "Laravel", site is branded
FitAtlas everywhere else including the browser tab title).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-10 11:55:11 +03:00

37 lines
858 B
PHP

<?php
namespace Tests\Feature;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
class LegalTest extends TestCase
{
use RefreshDatabase;
public function test_privacy_policy_page_loads(): void
{
$response = $this->get(route('legal.privacy'));
$response->assertOk();
$response->assertSee('Privacy Policy');
}
public function test_terms_page_loads(): void
{
$response = $this->get(route('legal.terms'));
$response->assertOk();
$response->assertSee('Terms of Service');
}
public function test_register_page_links_to_legal_pages(): void
{
$response = $this->get(route('register'));
$response->assertOk();
$response->assertSee(route('legal.privacy'), false);
$response->assertSee(route('legal.terms'), false);
}
}