diff --git a/tests/system/Helpers/URLHelper/MiscUrlTest.php b/tests/system/Helpers/URLHelper/MiscUrlTest.php index 85466b151a2e..4767dbf0cbfd 100644 --- a/tests/system/Helpers/URLHelper/MiscUrlTest.php +++ b/tests/system/Helpers/URLHelper/MiscUrlTest.php @@ -949,7 +949,7 @@ public function testUrlToWithRouteWithNestedParentheses(): void public function testUrlToMissingArgument(): void { $this->expectException(InvalidArgumentException::class); - $this->expectExceptionMessage('Missing argument for "([a-zA-Z]+)" in route "([a-zA-Z]+)/login".'); + $this->expectExceptionMessage('Missing argument for "(:alpha)" in route "(:alpha)/login".'); $routes = Services::routes(); $routes->group('(:alpha)', static function ($routes): void {