Skip to content

Commit

Permalink
maybe we need to check against latest 6.4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Feb 6, 2024
1 parent 93c6518 commit fba7864
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/phpunit/test-fonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ public function test_pantheon_font_dir() {

// Check current WP version to see if we can run the test.
$version = _pantheon_get_current_wordpress_version();
if ( version_compare( $version, '6.4', '<=' ) ) {
if ( version_compare( $version, '6.4.x', '<=' ) ) {
// 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 @@ -67,10 +66,9 @@ public function test_pantheon_font_dir() {
public function test_pantheon_font_dir_filter() {
// Check current WP version to see if we can run the test.
$version = _pantheon_get_current_wordpress_version();
if ( version_compare( $version, '6.4', '<=' ) ) {
if ( version_compare( $version, '6.4.x', '<=' ) ) {
// 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 All @@ -96,10 +94,9 @@ public function test_pantheon_font_dir_filter() {
public function test_pantheon_fonts_dir_filter() {
// Check current WP version to see if we can run the test.
$version = _pantheon_get_current_wordpress_version();
if ( version_compare( $version, '6.4', '<=' ) ) {
if ( version_compare( $version, '6.4.x', '<=' ) ) {
// 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,10 +137,9 @@ public function test_pantheon_fonts_dir_filter() {
public function test_disable_pantheon_font_dir_mods() {
// Check current WP version to see if we can run the test.
$version = _pantheon_get_current_wordpress_version();
if ( version_compare( $version, '6.4', '<=' ) ) {
if ( version_compare( $version, '6.4.x', '<=' ) ) {
// 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 fba7864

Please sign in to comment.