From 38d5c109981bb51dc3ba2309ca6152c49fc07f28 Mon Sep 17 00:00:00 2001 From: kenjis Date: Thu, 5 May 2022 09:16:42 +0900 Subject: [PATCH] fix: incorrect test `example.com` does not match`'subdomain' => '*'`, so the route is not registered. --- tests/system/Router/RouteCollectionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/system/Router/RouteCollectionTest.php b/tests/system/Router/RouteCollectionTest.php index 10bb36ec9c08..a36fcb8de3b2 100644 --- a/tests/system/Router/RouteCollectionTest.php +++ b/tests/system/Router/RouteCollectionTest.php @@ -1462,7 +1462,7 @@ public function testRouteToWithGenericSubdomainNot() $routes->get('i/(:any)', 'App\Controllers\Site\CDoc::item/$1', ['subdomain' => '*', 'as' => 'doc_item']); - $this->assertSame('/i/sth', $routes->reverseRoute('doc_item', 'sth')); + $this->assertFalse($routes->reverseRoute('doc_item', 'sth')); } public function testRouteToWithoutSubdomainMatch()