Files

37 lines
858 B
PHP
Raw Permalink Normal View History

<?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);
}
}