File tree Expand file tree Collapse file tree 2 files changed +5
-9
lines changed
tests/Integration/Routing Expand file tree Collapse file tree 2 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -252,11 +252,7 @@ public function getRoutesByMethod()
252
252
})
253
253
->map (function (Collection $ routes ) {
254
254
return $ routes ->mapWithKeys (function (Route $ route ) {
255
- if ($ domain = $ route ->getDomain ()) {
256
- return [$ domain .'/ ' .$ route ->uri => $ route ];
257
- }
258
-
259
- return [$ route ->uri => $ route ];
255
+ return [$ route ->getDomain ().$ route ->uri => $ route ];
260
256
})->all ();
261
257
})
262
258
->all ();
Original file line number Diff line number Diff line change @@ -527,13 +527,13 @@ public function testRouteWithSamePathAndSameMethodButDiffDomainNameWithOptionsMe
527
527
528
528
$ this ->assertEquals ([
529
529
'HEAD ' => [
530
- 'foo.localhost/same /path ' => $ routes ['foo_domain ' ],
531
- 'bar.localhost/same /path ' => $ routes ['bar_domain ' ],
530
+ 'foo.localhostsame /path ' => $ routes ['foo_domain ' ],
531
+ 'bar.localhostsame /path ' => $ routes ['bar_domain ' ],
532
532
'same/path ' => $ routes ['no_domain ' ],
533
533
],
534
534
'GET ' => [
535
- 'foo.localhost/same /path ' => $ routes ['foo_domain ' ],
536
- 'bar.localhost/same /path ' => $ routes ['bar_domain ' ],
535
+ 'foo.localhostsame /path ' => $ routes ['foo_domain ' ],
536
+ 'bar.localhostsame /path ' => $ routes ['bar_domain ' ],
537
537
'same/path ' => $ routes ['no_domain ' ],
538
538
],
539
539
], $ this ->collection ()->getRoutesByMethod ());
You can’t perform that action at this time.
0 commit comments