@@ -33,7 +33,8 @@ class RouteHandlersTest extends MediaWikiIntegrationTestCase {
3333
3434 public static function setUpBeforeClass (): void {
3535 parent ::setUpBeforeClass ();
36- $ searchRoutes = fn ( $ route ) => str_starts_with ( $ route ['path ' ], '/wikibase/v0 ' );
36+ $ searchRoutes = fn ( $ route ) => str_starts_with ( $ route ['path ' ], '/wikibase/v1/search ' )
37+ || str_starts_with ( $ route ['path ' ], '/wikibase/v1/suggest ' );
3738 $ prodRoutes = array_filter (
3839 json_decode ( file_get_contents ( __DIR__ . '/../../../../../../extension-repo.json ' ), true )[ 'RestRoutes ' ],
3940 $ searchRoutes
@@ -109,25 +110,25 @@ public static function routeHandlersProvider(): Generator {
109110 // phpcs:disable Generic.Arrays.ArrayIndent.CloseBraceNotNewLine
110111 yield 'SimpleItemSearch ' => [ [
111112 'useCase ' => SimpleItemSearch::class,
112- 'path ' => '/wikibase/v0 /search/items ' ,
113+ 'path ' => '/wikibase/v1 /search/items ' ,
113114 'serviceName ' => 'WbSearch.SimpleItemSearch ' ,
114115 ] ];
115116
116117 yield 'SimplePropertySearch ' => [ [
117118 'useCase ' => SimplePropertySearch::class,
118- 'path ' => '/wikibase/v0 /search/properties ' ,
119+ 'path ' => '/wikibase/v1 /search/properties ' ,
119120 'serviceName ' => 'WbSearch.SimplePropertySearch ' ,
120121 ] ];
121122
122123 yield 'ItemPrefixSearch ' => [ [
123124 'useCase ' => ItemPrefixSearch::class,
124- 'path ' => '/wikibase/v0 /suggest/items ' ,
125+ 'path ' => '/wikibase/v1 /suggest/items ' ,
125126 'serviceName ' => 'WbSearch.ItemPrefixSearch ' ,
126127 ] ];
127128
128129 yield 'PropertyPrefixSearch ' => [ [
129130 'useCase ' => PropertyPrefixSearch::class,
130- 'path ' => '/wikibase/v0 /suggest/properties ' ,
131+ 'path ' => '/wikibase/v1 /suggest/properties ' ,
131132 'serviceName ' => 'WbSearch.PropertyPrefixSearch ' ,
132133 ] ];
133134 }
0 commit comments