Skip to content

Commit

Permalink
return after marking test skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Feb 6, 2024
1 parent 9a5b45c commit 93c6518
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/phpunit/test-fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 93c6518

Please sign in to comment.