Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duotone.php code cleanup #48607

Merged
merged 19 commits into from
Mar 1, 2023
Merged
Prev Previous commit
Remove tear_down because I don't think it's used
  • Loading branch information
Alex Lende committed Mar 1, 2023
commit 3416969cf0de4ec94280732700578a8f3cd42a12
9 changes: 1 addition & 8 deletions phpunit/block-supports/duotone-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,8 @@
*/

class WP_Block_Supports_Duotone_Test extends WP_UnitTestCase {
public function tear_down() {
wp_clean_themes_cache();
unset( $GLOBALS['wp_themes'] );
WP_Style_Engine_CSS_Rules_Store_Gutenberg::remove_all_stores();
parent::tear_down();
}

public function test_gutenberg_render_duotone_support_preset() {
$block = array(
$block = array(
'blockName' => 'core/image',
'attrs' => array( 'style' => array( 'color' => array( 'duotone' => 'var:preset|duotone|slug' ) ) ),
);
Expand Down