Skip to content

Commit

Permalink
Remove 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanHerman committed Jun 24, 2024
1 parent e832aae commit d4cdca9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 24 deletions.
33 changes: 10 additions & 23 deletions .dev/tests/phpunit/src/blocks/gist/test-index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
);
}
)
);
}

/**
Expand All @@ -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(
"/<span class='coblocks-gist__container' style='pointer-events: all'><script src=\"https:\/\/gist.github.com\/{$gist_path}.js\">/",
coblocks_block_gist_handler( array( $gist_url, $gist_path ) )
$this->assertEquals(
coblocks_block_gist_handler( array( $gist_url, $gist_path ) ),
"<span class='coblocks-gist__container' style='pointer-events: none'><script src=\"https://gist.github.com/{$gist_path}.js\">\n\n</script>\n<a class=\"gist-block__container\" href=\"{$gist_url}\" target=\"_blank\">View this gist on GitHub</a></span>"
);
}

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d4cdca9

Please sign in to comment.