Skip to content

Commit e4f8e5d

Browse files
committed
Tests: Consolidate REST font faces context assertions.
Replace the empty context test with the existing provider-backed check. Preserve coverage for collection and individual font face routes. Developed in: WordPress#13773 Props shailu25. See #40538. git-svn-id: https://develop.svn.wordpress.org/trunk@63950 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 9f36ee8 commit e4f8e5d

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

‎tests/phpunit/tests/fonts/font-library/wpRestFontFacesController.php‎

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -149,20 +149,15 @@ public function test_font_faces_no_autosave_routes() {
149149
}
150150

151151
/**
152-
* @doesNotPerformAssertions
153-
*/
154-
public function test_context_param() {
155-
// See test_get_context_param().
156-
}
157-
158-
/**
152+
* @ticket 40538
153+
*
159154
* @dataProvider data_get_context_param
160155
*
161156
* @covers WP_REST_Font_Faces_Controller::get_context_param
162157
*
163158
* @param bool $single_route Whether to test a single route.
164159
*/
165-
public function test_get_context_param( $single_route ) {
160+
public function test_context_param( $single_route = false ) {
166161
$route = '/wp/v2/font-families/' . self::$font_family_id . '/font-faces';
167162
if ( $single_route ) {
168163
$route .= '/' . self::$font_face_id1;

0 commit comments

Comments
 (0)