From fba786461b9b7c1676fb400956d7d235825fce0e Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Tue, 6 Feb 2024 11:43:24 -0700 Subject: [PATCH] maybe we need to check against latest 6.4.x --- tests/phpunit/test-fonts.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/phpunit/test-fonts.php b/tests/phpunit/test-fonts.php index 7adae37..a60ab1b 100644 --- a/tests/phpunit/test-fonts.php +++ b/tests/phpunit/test-fonts.php @@ -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(); @@ -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(); @@ -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(); @@ -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();