@@ -1040,9 +1040,6 @@ public function testGroupMerging()
1040
1040
$ this ->assertEquals (['prefix ' => null , 'namespace ' => null , 'where ' => [
1041
1041
'var1 ' => 'foo ' , 'var2 ' => 'bar ' ,
1042
1042
]], RouteGroup::merge (['where ' => ['var1 ' => 'foo ' , 'var2 ' => 'bar ' ]], $ old ));
1043
-
1044
- $ old = [];
1045
- $ this ->assertEquals (['prefix ' => 'foo ' , 'namespace ' => null , 'where ' => []], RouteGroup::merge (['prefix ' => 'foo ' ], $ old ));
1046
1043
}
1047
1044
1048
1045
public function testRouteGrouping ()
@@ -1171,34 +1168,6 @@ public function testNestedRouteGroupingPrefixing()
1171
1168
$ routes = $ router ->getRoutes ();
1172
1169
$ route = $ routes ->getByName ('Foo::baz ' );
1173
1170
$ this ->assertSame ('bar/foo ' , $ route ->getAction ('prefix ' ));
1174
-
1175
- /*
1176
- * nested with first layer skipped (prefix prepended)
1177
- */
1178
- $ router = $ this ->getRouter ();
1179
- $ router ->group (['as ' => 'Foo:: ' ], function () use ($ router ) {
1180
- $ router ->prefix ('bar ' )->get ('baz ' , ['as ' => 'baz ' , function () {
1181
- return 'hello ' ;
1182
- }]);
1183
- });
1184
- $ routes = $ router ->getRoutes ();
1185
- $ route = $ routes ->getByName ('Foo::baz ' );
1186
- $ this ->assertSame ('bar ' , $ route ->getAction ('prefix ' ));
1187
-
1188
- /*
1189
- * nested with first layer skipped (prefix appended)
1190
- */
1191
- $ router = $ this ->getRouter ();
1192
- $ router ->group (['as ' => 'Foo:: ' ], function () use ($ router ) {
1193
- $ router ->group (['prefix ' => 'bar ' ], function () use ($ router ) {
1194
- $ router ->get ('baz ' , ['as ' => 'baz ' , function () {
1195
- return 'hello ' ;
1196
- }]);
1197
- });
1198
- });
1199
- $ routes = $ router ->getRoutes ();
1200
- $ route = $ routes ->getByName ('Foo::baz ' );
1201
- $ this ->assertSame ('bar ' , $ route ->getAction ('prefix ' ));
1202
1171
}
1203
1172
1204
1173
public function testRouteMiddlewareMergeWithMiddlewareAttributesAsStrings ()
0 commit comments