From d1a32d1ad6b77467345b2408a0a4fc75e719f3ee Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Tue, 27 Jun 2023 11:44:32 -0500 Subject: [PATCH] Remove tests for deprecated functions --- .../theme/wpGetGlobalStylesSvgFilters.php | 62 ------------------- 1 file changed, 62 deletions(-) delete mode 100644 tests/phpunit/tests/theme/wpGetGlobalStylesSvgFilters.php diff --git a/tests/phpunit/tests/theme/wpGetGlobalStylesSvgFilters.php b/tests/phpunit/tests/theme/wpGetGlobalStylesSvgFilters.php deleted file mode 100644 index bac3375b259bb..0000000000000 --- a/tests/phpunit/tests/theme/wpGetGlobalStylesSvgFilters.php +++ /dev/null @@ -1,62 +0,0 @@ -assertStringContainsString( 'assertStringContainsString( 'assertNotSame( $svg_for_default_theme, $svg_for_block_theme, 'Cache value should have changed' ); - } - - /** - * Tests that the function relies on the development mode for whether to use caching. - * - * @ticket 57487 - * - * @covers ::wp_get_global_styles_svg_filters - */ - public function test_caching_is_used_when_developing_theme() { - global $_wp_tests_development_mode; - - switch_theme( 'block-theme' ); - - // Store SVG in cache. - $svg = ''; - wp_cache_set( 'wp_get_global_styles_svg_filters', $svg, 'theme_json' ); - - // By default, caching should be used, so the above value will be returned. - $_wp_tests_development_mode = ''; - $this->assertSame( $svg, wp_get_global_styles_svg_filters(), 'Caching was not used despite development mode disabled' ); - - // When the development mode is set to 'theme', caching should not be used. - $_wp_tests_development_mode = 'theme'; - $this->assertNotSame( $svg, wp_get_global_styles_svg_filters(), 'Caching was used despite theme development mode' ); - } -}