From 93c6518d28c99be7c1346cf4af52a3aee0af2e4f Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 6 Feb 2024 11:36:49 -0700 Subject: [PATCH] return after marking test skipped --- tests/phpunit/test-fonts.php | 4 ++++ 1 file changed, 4 insertions(+) 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();