diff --git a/.dev/tests/phpunit/src/blocks/gist/test-index.php b/.dev/tests/phpunit/src/blocks/gist/test-index.php index 94cbf297337..b383df0d3b9 100644 --- a/.dev/tests/phpunit/src/blocks/gist/test-index.php +++ b/.dev/tests/phpunit/src/blocks/gist/test-index.php @@ -28,27 +28,14 @@ public function test_coblocks_block_gist_handler_returns_empty_string_without_pr $this->assertSame( coblocks_block_gist_handler( array( 'http://godaddy.com' ) ), '' ); $this->assertSame( coblocks_block_gist_handler( array( 'https://gist.github.com' ) ), '' ); - global $wp_version; - - if ( version_compare( $wp_version, '6.4', '<=' ) { - $this->assertNotEmpty( - coblocks_block_gist_handler( - array( - 'https://gist.github.com/someuser/a04f4e14e3cd3b6d48157ea0706114f7', - 'someuser/a04f4e14e3cd3b6d48157ea0706114f7', - ) - ) - ); - } else { - $this->assertEmpty( - coblocks_block_gist_handler( - array( - 'https://gist.github.com/someuser/a04f4e14e3cd3b6d48157ea0706114f7', - 'someuser/a04f4e14e3cd3b6d48157ea0706114f7', - ) + $this->assertNotEmpty( + coblocks_block_gist_handler( + array( + 'https://gist.github.com/someuser/a04f4e14e3cd3b6d48157ea0706114f7', + 'someuser/a04f4e14e3cd3b6d48157ea0706114f7', ) - ); - } + ) + ); } /** @@ -58,9 +45,9 @@ public function test_coblocks_block_gist_handler_returns_valid_embed() { $gist_url = 'https://gist.github.com/someuser/a04f4e14e3cd3b6d48157ea0706114f7'; $gist_path = 'someuser/a04f4e14e3cd3b6d48157ea0706114f7'; - $this->assertMatchesRegularExpression( - "/\nView this gist on GitHub" ); } diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml index e12541a9cea..bc84ecba8db 100644 --- a/.github/workflows/test-e2e.yml +++ b/.github/workflows/test-e2e.yml @@ -24,7 +24,6 @@ jobs: wp: # Test against Prev-Prev Major, Prev-Major, and current Major release versions. - "6.3" - "6.4" - - "6.5" theme: - "https://downloads.wordpress.org/theme/go.zip" - "" # Default theme is TwentyTwentyThree