Skip to content

Commit 38d5c10

Browse files
committed
fix: incorrect test
`example.com` does not match`'subdomain' => '*'`, so the route is not registered.
1 parent 8e248f3 commit 38d5c10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/system/Router/RouteCollectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ public function testRouteToWithGenericSubdomainNot()
14621462

14631463
$routes->get('i/(:any)', 'App\Controllers\Site\CDoc::item/$1', ['subdomain' => '*', 'as' => 'doc_item']);
14641464

1465-
$this->assertSame('/i/sth', $routes->reverseRoute('doc_item', 'sth'));
1465+
$this->assertFalse($routes->reverseRoute('doc_item', 'sth'));
14661466
}
14671467

14681468
public function testRouteToWithoutSubdomainMatch()

0 commit comments

Comments
 (0)