@@ -28,7 +28,7 @@ class Tests_REST_WpRestFontFamiliesController extends WP_Test_REST_Controller_Te
2828 'name ' => 'Open Sans ' ,
2929 'slug ' => 'open-sans ' ,
3030 'fontFamily ' => '"Open Sans", sans-serif ' ,
31- 'preview ' => 'https://s.w.org/images/fonts/wp-7.0 /previews/open-sans/open-sans-400-normal.svg ' ,
31+ 'preview ' => 'https://s.w.org/images/fonts/wp-7.1 /previews/open-sans/open-sans-400-normal.svg ' ,
3232 );
3333
3434 public static function wpSetUpBeforeClass ( WP_UnitTest_Factory $ factory ) {
@@ -48,7 +48,7 @@ public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
4848 'name ' => 'Open Sans ' ,
4949 'slug ' => 'open-sans ' ,
5050 'fontFamily ' => '"Open Sans", sans-serif ' ,
51- 'preview ' => 'https://s.w.org/images/fonts/wp-7.0 /previews/open-sans/open-sans-400-normal.svg ' ,
51+ 'preview ' => 'https://s.w.org/images/fonts/wp-7.1 /previews/open-sans/open-sans-400-normal.svg ' ,
5252 )
5353 );
5454 self ::$ font_family_id2 = self ::create_font_family_post (
@@ -682,7 +682,7 @@ public function test_create_item_no_permission() {
682682 'name ' => 'Open Sans ' ,
683683 'slug ' => 'open-sans ' ,
684684 'fontFamily ' => '"Open Sans", sans-serif ' ,
685- 'preview ' => 'https://s.w.org/images/fonts/wp-7.0 /previews/open-sans/open-sans-400-normal.svg ' ,
685+ 'preview ' => 'https://s.w.org/images/fonts/wp-7.1 /previews/open-sans/open-sans-400-normal.svg ' ,
686686 )
687687 )
688688 );
@@ -699,7 +699,7 @@ public function test_update_item() {
699699 $ settings = array (
700700 'name ' => 'Open Sans ' ,
701701 'fontFamily ' => 'Open Sans, "Noto Sans", sans-serif ' ,
702- 'preview ' => 'https://s.w.org/images/fonts/wp-7.0 /previews/open-sans/open-sans-400-normal.svg ' ,
702+ 'preview ' => 'https://s.w.org/images/fonts/wp-7.1 /previews/open-sans/open-sans-400-normal.svg ' ,
703703 );
704704
705705 $ font_family_id = self ::create_font_family_post ( array ( 'slug ' => 'open-sans-2 ' ) );
@@ -755,7 +755,7 @@ public function data_update_item_individual_settings() {
755755 return array (
756756 array ( array ( 'name ' => 'Opened Sans ' ) ),
757757 array ( array ( 'fontFamily ' => '"Opened Sans", sans-serif ' ) ),
758- array ( array ( 'preview ' => 'https://s.w.org/images/fonts/wp-7.0 /previews/opened-sans/opened-sans-400-normal.svg ' ) ),
758+ array ( array ( 'preview ' => 'https://s.w.org/images/fonts/wp-7.1 /previews/opened-sans/opened-sans-400-normal.svg ' ) ),
759759 // Empty preview is allowed.
760760 array ( array ( 'preview ' => '' ) ),
761761 );
0 commit comments