diff --git a/tests/phpunit/test-fonts.php b/tests/phpunit/test-fonts.php index 09942dc..7adae37 100644 --- a/tests/phpunit/test-fonts.php +++ b/tests/phpunit/test-fonts.php @@ -39,6 +39,7 @@ public function test_pantheon_font_dir() { if ( version_compare( $version, '6.4', '<=' ) ) { // Skip the test if the current WP version is less than 6.5. $this->markTestSkipped( 'WP 6.5+ or Gutenberg 17.6+ must be available to test the font library modifications.' ); + return; } $this->maybe_get_font_library(); @@ -69,6 +70,7 @@ public function test_pantheon_font_dir_filter() { if ( version_compare( $version, '6.4', '<=' ) ) { // Skip the test if the current WP version is less than 6.5. $this->markTestSkipped( 'WP 6.5+ or Gutenberg 17.6+ must be available to test the font library modifications.' ); + return; } $this->maybe_get_font_library(); @@ -97,6 +99,7 @@ public function test_pantheon_fonts_dir_filter() { if ( version_compare( $version, '6.4', '<=' ) ) { // Skip the test if the current WP version is less than 6.5. $this->markTestSkipped( 'WP 6.5+ or Gutenberg 17.6+ must be available to test the font library modifications.' ); + return; } $this->maybe_get_font_library(); @@ -140,6 +143,7 @@ public function test_disable_pantheon_font_dir_mods() { if ( version_compare( $version, '6.4', '<=' ) ) { // Skip the test if the current WP version is less than 6.5. $this->markTestSkipped( 'WP 6.5+ or Gutenberg 17.6+ must be available to test the font library modifications.' ); + return; } $this->maybe_get_font_library();