Skip to content

Commit

Permalink
fix: incorrect test
Browse files Browse the repository at this point in the history
`example.com` does not match`'subdomain' => '*'`, so the route is not registered.
  • Loading branch information
kenjis committed May 5, 2022
1 parent 8e248f3 commit 38d5c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system/Router/RouteCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 38d5c10

Please sign in to comment.