From f6760ece8eb4583d44c4ae60df20272c6fe9819e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 30 Jun 2021 15:58:51 +0000 Subject: [PATCH] Docs: Add `@ticket` references to some `WP_Theme_JSON` tests. Follow-up to [50973], [51054]. See #52628, #53461. git-svn-id: https://develop.svn.wordpress.org/trunk@51281 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/theme/wpThemeJson.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/phpunit/tests/theme/wpThemeJson.php b/tests/phpunit/tests/theme/wpThemeJson.php index 1199118065..904cada384 100644 --- a/tests/phpunit/tests/theme/wpThemeJson.php +++ b/tests/phpunit/tests/theme/wpThemeJson.php @@ -64,6 +64,9 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase { $this->assertSameSetsWithIndex( $expected, $actual ); } + /** + * @ticket 53397 + */ function test_get_settings_presets_are_keyed_by_origin() { $core_origin = new WP_Theme_JSON( array( @@ -189,6 +192,9 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase { $this->assertEqualSetsWithIndex( $expected_no_origin, $actual_no_origin ); } + /** + * @ticket 53175 + */ function test_get_stylesheet() { $theme_json = new WP_Theme_JSON( array( @@ -307,6 +313,9 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase { ); } + /** + * @ticket 52991 + */ function test_get_stylesheet_preset_classes_work_with_compounded_selectors() { $theme_json = new WP_Theme_JSON( array( @@ -334,6 +343,9 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase { ); } + /** + * @ticket 53175 + */ function test_get_stylesheet_preset_rules_come_after_block_rules() { $theme_json = new WP_Theme_JSON( array( @@ -374,6 +386,9 @@ class Tests_Theme_wpThemeJson extends WP_UnitTestCase { ); } + /** + * @ticket 53175 + */ public function test_get_stylesheet_preset_values_are_marked_as_important() { $theme_json = new WP_Theme_JSON( array(