presseportale/tests/Feature/Web/DevExampleRoutesTest.php
Kevin Adametz 1a612e04b2 R0.1: tote Dev-Varianten-Routen entfernt (fehlende Views -> 500 auf BP24)
/variant-1 + /variant-2 referenzierten nicht existierende Views
web.businessportal24-variant-float-glow/-glass-gradient; Fragmente der
alten Frontend-Version, nirgends verlinkt. Regressionstest ersetzt den
Stub in DevExampleRoutesTest.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 07:50:37 +00:00

14 lines
501 B
PHP

<?php
use Illuminate\Support\Facades\Route;
use Tests\TestCase;
test('dev variant routes are removed', function () {
expect(Route::has('variant-1'))->toBeFalse();
/** @var TestCase $this */
$this->get('https://businessportal24.test/variant-1')->assertNotFound();
$this->get('https://businessportal24.test/variant-2')->assertNotFound();
$this->get('https://presseecho.test/variant-1')->assertNotFound();
$this->get('https://presseecho.test/variant-2')->assertNotFound();
});