This commit is contained in:
Robert Wartenberg committed 2026-08-19 12:02:01 +02:00
1 parent b3f1d57263
commit 37c03164ea
3 files changed
+30 -1

No files matched your search

@@ -0,0 +1,18 @@
$projectRoot = Split-Path -Parent $PSScriptRoot
$mockupPath = Join-Path $projectRoot 'public\perspektivwerk\index.html'
$htaccessPath = Join-Path $projectRoot 'public\.htaccess'
Describe 'Perspektivwerk static route' {
It 'contains the static mockup entry point' {
(Test-Path -LiteralPath $mockupPath) | Should Be $true
}
It 'routes /perspektivwerk to the static entry point before the Contao fallback' {
$htaccess = Get-Content -LiteralPath $htaccessPath -Raw
$staticRouteIndex = $htaccess.IndexOf('RewriteRule ^perspektivwerk/?$ perspektivwerk/index.html [L]')
$fallbackIndex = $htaccess.IndexOf('RewriteRule ^ %{ENV:BASE}/index.php [L]')
$staticRouteIndex | Should BeGreaterThan -1
$staticRouteIndex | Should BeLessThan $fallbackIndex
}
}