From 39be23fc2fc58b93ddeaf77e7110c87eb3313837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9?= <583546+oandregal@users.noreply.github.com> Date: Wed, 20 Oct 2021 11:54:24 +0200 Subject: [PATCH] Test that single parts can be updated but the untouched ones remain equal (#35759) --- phpunit/class-wp-theme-json-resolver-test.php | 18 ++++++++++++++++-- phpunit/data/themedir1/fse-child/theme.json | 4 ++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/phpunit/class-wp-theme-json-resolver-test.php b/phpunit/class-wp-theme-json-resolver-test.php index b3986d1b9551a..673be29009022 100644 --- a/phpunit/class-wp-theme-json-resolver-test.php +++ b/phpunit/class-wp-theme-json-resolver-test.php @@ -283,10 +283,24 @@ function test_merges_child_theme_json_into_parent_theme_json() { ), ), ), - 'custom' => true, + 'custom' => false, + 'link' => true, ), 'blocks' => array( - 'core/paragraph' => array( + 'core/paragraph' => array( + 'color' => array( + 'palette' => array( + 'theme' => array( + array( + 'slug' => 'light', + 'name' => 'Light', + 'color' => '#f5f7f9', + ), + ), + ), + ), + ), + 'core/post-title' => array( 'color' => array( 'palette' => array( 'theme' => array( diff --git a/phpunit/data/themedir1/fse-child/theme.json b/phpunit/data/themedir1/fse-child/theme.json index 4e3f75c503fe5..90fe35e758b45 100644 --- a/phpunit/data/themedir1/fse-child/theme.json +++ b/phpunit/data/themedir1/fse-child/theme.json @@ -19,10 +19,10 @@ "color": "#111827" } ], - "custom": true + "link": true }, "blocks": { - "core/paragraph": { + "core/post-title": { "color": { "palette": [ {