Skip to content

Commit 981362b

Browse files
committed
Fix test for expected routes in REST API schema
1 parent a14c8e7 commit 981362b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/phpunit/tests/rest-api/rest-schema-setup.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,7 @@ public function test_expected_routes_in_schema() {
195195
'/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces',
196196
'/wp/v2/font-families/(?P<font_family_id>[\d]+)/font-faces/(?P<id>[\d]+)',
197197
'/wp/v2/font-families/(?P<id>[\d]+)',
198+
'/wp-abilities/v1',
198199
'/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\-\/]+?)/run',
199200
'/wp-abilities/v1/abilities/(?P<name>[a-zA-Z0-9\-\/]+)',
200201
'/wp-abilities/v1/abilities',
@@ -208,7 +209,8 @@ private function is_builtin_route( $route ) {
208209
'/' === $route ||
209210
preg_match( '#^/oembed/1\.0(/.+)?$#', $route ) ||
210211
preg_match( '#^/wp/v2(/.+)?$#', $route ) ||
211-
preg_match( '#^/wp-site-health/v1(/.+)?$#', $route )
212+
preg_match( '#^/wp-site-health/v1(/.+)?$#', $route ) ||
213+
preg_match( '#^/wp-abilities/v1(/.+)?$#', $route )
212214
);
213215
}
214216

0 commit comments

Comments
 (0)