refactor(tests): convert IpRestrictionServiceTest to Pest functional syntax

Rewrote all test methods to use Pest's test() function with expect()
assertions instead of PHPUnit class-based syntax:
- IP validation tests (IPv4 and IPv6)
- CIDR range matching for all prefix lengths (/0 to /32 for IPv4, /0 to /128 for IPv6)
- Whitelist management tests (parsing, formatting, comments)
- Entry validation and error handling
- Edge cases (loopback, private ranges, link-local, mixed protocols)

Test count increased from 60+ to 78 with additional edge case coverage.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-01-29 18:50:41 +00:00
parent e70e078bcb
commit d76db0672b
2 changed files with 1125 additions and 991 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff