✨ Story 3.2: router php urls
This commit is contained in:
15
tests/router.test.ps1
Normal file
15
tests/router.test.ps1
Normal file
@@ -0,0 +1,15 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
function Assert-True {
|
||||
param(
|
||||
[bool]$Condition,
|
||||
[string]$Message
|
||||
)
|
||||
if (-not $Condition) { throw $Message }
|
||||
}
|
||||
|
||||
Assert-True (Test-Path '.htaccess') 'Missing .htaccess'
|
||||
$ht = Get-Content -Raw '.htaccess'
|
||||
Assert-True ($ht -match 'RewriteRule') 'Missing RewriteRule in .htaccess'
|
||||
|
||||
'OK'
|
||||
Reference in New Issue
Block a user